End point
Below is a list of all required arguments to be sent in the POST request:
Parameter | Required | Description |
api_key | YES | The value of api_key identifies the user within the system when interacting with the api.
You obtain this by registering on https://doc.smstoday.net.
Register here |
password | YES | Your SMS TODAY account password |
The endpoint balance is important when you wanted to know your account balance
The sample code below is all that is required to integrate Sms today into your application/websites when calling balance apiREQUEST RESPONSE
Response is always on json format where you're required to decode into your workspace languagejson string which the server reply to your call
json string explained
Parameter | Description | Example |
type |
Their are number of request type response
success indicated that the request was made successful |
success, info, danger, warning |
msg | This contains the response message in a human readable | request was successful, request wasn't successful |
status | Depending on the que status the api can replay with number of request codes, these codes indicates that the request succeed or not |
200 request was successful |
balance | Contains the amount of your account balance |
balance 13,239.80 |
currency | Contains the currency in which your balance is |
currency CURR |