You are on page 1of 3

HTTP API Specification

Version 1.0

Pushing Short/Long SMS messages


For sending messages use the URL given below:

http://URL/pushsms.php?username=prodemo&password=prodemo&sender=BULKSMS&message
=Test&numbers=9100000009
The parameters that are going to be passed and their description are given in the table given below:
Parameter name

Parameter Description

Username

This contains the username of the user

password

This contains the password of the user

sender

This field holds the header that will be displayed on the mobile phone

message

This is message which will not contain more than160 characters.

numbers

This field has all the Mobile numbers that are separated by a comma. The maximum number that
can be sent in a signal request is 300. Please dont send more that 300 numbers.

Version

For multiple mobile number with comma(,) separated, pass version greater than 1.1 otherwise you
will not able to send to multiple number

Here is the list of return values when the HTTP request is made :
Parameter name

Parameter Description

Message is blank

This will return when there is no message in the


URL

Invalid Credentials

Invalid Username & Password

Account is Expire

This will return when the account is expired.

Insufficient Balance

This will return when Insufficient Balance

Invalid SenderID

This will return when the senderid is invalid

007-DND

The Number is registered with NDNC

Invalid

The Number is invalid

Scheduling messages
For Scheduling messages use the URL given below:

http://URL/schedulesms.php?username=prodemo&password=prodemo&sender=BULKSMS&mess
age=Test&numbers=910000000&stime=YYYY-MM-DD HH:MM:SS
Parameter name

Parameter Description

SMS Successfully Scheduled

This will return when messages is scheduled.

Credit Check URL


For Checking Credits use the URL given below:
http://182.18.166.56/check-credit.php?username=USERNAME&password=PASSWORD
Parameter name

Parameter Description

Username

This contains the username of the user

password

This contains the password of the user

PHP Sample Script


For Integration in PHP use the sciprt given below:
<?php
$ID = 'username'; $Pwd
= 'password'; $PhNo =
'9xxxxxxxxx'; $Text =
'TEST sms';
$url="http://www.domain.com/pushsms.php?username=$ID&password=$Pwd&numbers=$PhNo&message=$Tex
t&sender=sender;
$ret = file($url);
echo $ret[9];
?>

XML API Sample Script


For XML use the sciprt given below:
<?xml version='1.0'?>
<smslist>
<sms>
<user>userid</user>
<password>password</password>
<message>message content</message>
<numbers>9XXXXXXXXX<numbers>
<sender>BULKSMS</sender>
</sms>
<sms>

You might also like