https://desk.sms.com.na/api/http/?key=API_TOKEN&action=sendsms&to=LIST_OF_MOBILE_NUMBERS_SEPERATED_BY_COMMA&msg=YOUR_SMS_MESSAGE
If an error has occurred the system will return a plain text string starting with
“error” followed by the error message e.g error - Message not provided
Checking the status of a submitted message
https://desk.sms.com.na/api/http/?key= API_TOKEN &action=status& msgid_list = LIST_OF_SUBMITTED_SMS_IDs_SEPERATED_BY_COMMA
Here is a C# code snippet that you can use:
rows - the number of rows you want to retain. The default is 10 and the maximum value is 10 000
dt - Date and Time from which you want to download the SMSs. The format must be yyyyMMddHHmm. By default
this is backdated by 24 hours from the moment of
querying. The date cannot be beyond 3 months from
the time of querying and cannot be in the future.
status - 1 = New (Unread) SMSs
2 = SMSs already fetched or read
The XML post toward the WASP providd URL EndPoint will have the following format:
<ussd>
<msisdn>M</msisdn>
<sessionid>S</sessionid>
<type>T</type>
<msg>MSG</msg>
</ussd>
Where:
Parameter | Description |
M | The MSISDN of the subscriber making the request in International format, i.e. 27829991234. |
S | Is the session ID. TruRoute-USSD generates a new id for every new session. |
T | The request type. See the table below for more detail |
MSG |
The actual text entered by the subscriber. This will be either: -the service code entered to start the session -the text entered by the user in response to a message from the WASP |
Request types:
Identifier | Value "T" | Description |
REQUEST | 1 | New USSD request string from the mobile. |
RESPONSE | 2 | Response from the mobile in an already existing session |
RELEASE | 3 | Set by TruRoute-USSD to indicate that the user has cancelled the current session. |
TIMEOUT | 4 | The session timed out. This indicates that the user has failed to respond within a pre-set timeout value. |
CHARGE | 10 | A premium rate charge (as requested by the WASP) failed. The reason for the failure is noted in the MSG part f the XML document. |
<ussd>
<type>T</type>
<msg>MSG</msg>
<premium>
<cost>C</cost>
<ref>R</ref>
</premium>
</ussd>
Where:
Parameter | Description |
T | The request type. See the table below for more detail |
MSG | The actual text that should be sent to the subscriber. Please also see the REDIRECT response type below. |
C | The cost that should be charged to the subscriber by the WASP. The cost that should be charged to the subscriber by the WASP. |
R | A unique reference supplied by the WASP for this charging transaction. |
Request types:
Identifier | Value "T" | Description |
REQUEST | 2 | Response to the mobile keeping the session open. |
RESPONSE | 3 | Response to the mobile closing the session. |
RELEASE | 5 | Redirect the response to another WASP. The "msg" field will contain the complete USSD service code to which TruRoute-USSD should redirect the USSD session. |