There are just two URL encoded parameters for polling messages:
Name |
Description |
Required? |
userId
|
User name for authentication (same as used for logging into the website). User name and password may be passed as form encoded parameters, or in the HTTP Authorization header in Basic format.
|
YES
|
password
|
Your account password
|
YES
|
eTXT will respond to each and every HTTP request with one of the following result codes:
Code |
Meaning |
Action Required |
200
|
OK (normal result)
|
Parse the results for the outgoing message details as described below.
|
401
|
Unauthorized
|
Check userId and password .
|
500
|
Internal Error
|
Contact Spark
|
For 200 codes (success) eTXT will include JSON response containing some or all of message information as described below.
Note: The order of the parameters may change so use value/pair matching rather than location mapping.