SMS Xml Api allows you to integrate our sms service to your own web based / stand alone applications.
$xml = '<?xml version="1.0" encoding="UTF-8"?> <message> <key>Account key</key> <sms>Message</sms> <templateid>DLT_Templateid</templateid> <sender>Sender id</sender> <route>Route</route> <number>Number</number> <number>Number 2</number> </message>';$xml = urlencode($xml);
# | Parameter | Description | |
---|---|---|---|
1 | key | Your account API key | |
2 | sender | Sender id | |
3 | number | Destination numbers | |
4 | route | Route you want to send SMS ( Transactional - 1, Promo SID - 2, Promotional - 3, Promo DND - 4, Trans OTP - 6, Service Implicit - 7, Service Explicit - 8) | |
5 | sms | SMS content | |
6 | templateid | DLT Template ID | |
* All special character included content should be in urlencode format. |
* A numeric value other than these error codes is the unique message id for the sent slot. Keep this message id for delivery report.
SMS Delivery Report Xml Api allows you to get delivery report of a slot sent via Api as XML format.
$xml = '<?xml version="1.0" encoding="UTF-8"?> <deliveryreport> <key>Account key</key> <messageid>Unique id</messageid> </deliveryreport>';$xml = urlencode($xml);
# | Parameter | Description | |
---|---|---|---|
1 | key | Your account API key | |
2 | messageid | Unique message id returned by SMS Api | |
* Give the exact message id. |
* A successive api return a XML file containing the sent destination numbers with delivery report
<xml> <report> <number>Number</number> <status>Status</status> <time>Date Time</time> </report> <report> <number>Number 2</number> <status>Status 2</status> <time>Date Time 2</time> </report> </xml>
Available credits Api allows you to get currently available credits of a given route.
$xml = '<?xml version="1.0" encoding="UTF-8"?> <creditscheck> <key>Account key</key> <route>Route</route> </creditscheck>';$xml = urlencode($xml);
# | Parameter | Description | |
---|---|---|---|
1 | key | Your account API key | |
2 | route | Route you want to check credits ( Transactional - 1, Promo SID - 2, Promotional - 3, Promo DND - 4, Trans OTP - 6, Service Implicit - 7, Service Explicit - 8) | |
* Give the exact route id. |
* A successive api return a XML file containing the route name and credits
<creditreport> <route>Route</route> <credits>Available credits</credits> </creditreport>