The following is an example REST/JSON get-pending request from the user:
POST /api/v2/tss-text-get-sr-pending-tfn HTTP/1.0 Content-Type: application/json
Content-Length: <num>
{
"id":"user",
"pwd":"password",
"ownerTspid":"SRID" // issue this post for each SR desired
}
A response similar to the following is issued by Texting and Smart Services (TSS) to the user on success:
// The HTTP header is omitted for brevity.
{
"url": "/api/v2/tss-text-get-sr-pending-tfn", "pendingList":
[ // start of the list
{ // start of 1st entry "tfn":"8007001212", "date":"04/21/2015 08:03:56 GMT"
"sr":"ServiceRegistrarName", // Owner SR
"businessName":"Subscriber Business Name",
"contactName":"Subscriber Contact Name // A person
"contactPhone": "Subscriber Contact Phone",
"contactEmail":"Subscriber Contact Email",
"tspid":"12345" // Owner SR ID
} // end of 1st entry
// The above example is a single entry in the pendingList.
// More may be present, each in a comma-separated
// curly brace stanza.
] // end of the pendingList
}
The following table describes the above fields.
The following table describes the possible response HTTP status codes.
The following table describes the possible response HTTP status codes.