Our API
In addition to the web interface which can ben accessed from
https://ogosms.com/
using your username and password,
You can also perform all the operations over web api.
To check your account balance
https://www.ogosms.com/smsapi/?balance=true&username=username&password=password
You will get your account balance in plane text example
10021.21
But in the case of invalid credentials in the username and password, You will get response A11
To send message over Normal route only.
Note that messages sent over this api will not deliver to numbers on dnd. use the dynamic api to deliver sms to both dnd numbers.
https://www.ogosms.com/smsapi/?username=username&password=password&sender=MASK&numbers=07012345678&message=message
You will have to set the necessary parameters.
username = your Ogosms username,
password = your Ogosms password,
sender = The sender Id you wish to use for your message.
numbers = phone numbers of the recepients (in case of multiple recipients, seperate numbers by comma, example 07064486121,08111744142)
message = the body of the message.
In a successful api call, These are the expected responses.
A11 = Invalid username or password
A12 = Insufficient balance
A13 = MESSAGE NOT DEFINED
A14 = NUMBERS NOT SET
A15 = SENDER NOT SET
OK (NUMBER COUNT) | (AMOUNT) Example, OK1 | 1.60 => this implies that 1.60 units were used to send message to 1 number.
SENDING MESSAGE TO DND
To send sms Using dynamic api.
Just change the url to
https://www.ogosms.com/dynamicapi/
Example
https://www.ogosms.com/dynamicapi/?username=username&password=password&sender=GIGL&numbers=07064486121&message=message
Every other parameter remains the same.
The route for sending the message will be detected and used by the system, depending on whether or not the line is on dnd.
OK (NUMBER COUNT) | (AMOUNT) | (ROUTE USED),
Example OK1 | 1.60 | normal_route => implies that the message was sent on normal route
If the number is on dnd, the message will be parsed to the sim_route.