The Following Table Gives The List of Parameters Required For Sending Message Through Smscountry'S Gateway Using The HTTP Api
The Following Table Gives The List of Parameters Required For Sending Message Through Smscountry'S Gateway Using The HTTP Api
1. INTRODUCTION
Accessing gateway through HTTP API is one of the best and the quickest ways to deliver
SMS messages. The HTTP API can be used to send various types of SMS messages
including normal text messages, Unicode messages, ring tones, logos and picture
messages.
This document gives a detailed explanation of using the gateway through HTTP
API.
2. PARAMETER DEFINITION
USERNAME: - USER
The user is free to choose his username at the time of registration. The user
parameter cannot be more than 17 characters long and can only contain alphabets
and numbers, with no blank spaces or special characters.
PASSWORD: - PASSWD
The user is free to choose his password at the time of registration. The
passwd parameter cannot be more than 20 characters long and can only
contain alphabets and numbers, with no blank spaces or special characters.
Please Note:
HTTP API - HELP DOCUMENT
MESSAGE: - MSG
The msg parameter refers to the actual message that is to be sent to the destination mobile
number. The format of the message differs depending on the type of message being sent.
For simple text messages, the message can contain numbers, alphabets, spaces and certain
special characters. The message can contain a maximum of 160 characters, including spaces.
In case of Unicode messaging, the message can contain only numbers in the
form of Unicode digits. Further, it can have a maximum of 70 characters i.e.
70 x 4 Unicode digits for each character that means 280 digits.
In case of binary messaging, the message can contain only valid 8-bit data string. The
binary message can be a maximum of 140 characters only for each SMS. However, Ring
tones, Logos and Pictures that exceed 140 characters can be sent as two / three SMS
messages.
HTTP API - HELP DOCUMENT
Due to restrictions in the HTTP protocol, the following special characters must
be encoded, as shown below, to avoid collision with reserved HTTP characters –
3. MESSAGING
http://api.smscountry.com/SMSCwebservice_bulk.aspx?User=xxxxxx&passwd=xxxxxxxxxxx
x&mobilenumber=xxxxxxxxxx&message=xxxxxxxxx&sid =xxxxxxxx&mtype=N&DR=Y
http://api.smscountry.com/SMSCwebservice_bulk.aspx?mobilenumber=xxxxxxxx
xx&message=xxxxxxxxx&sid=xxxxxxxx&mtype=N&DR=Y
http://api.smscountry.com/SMSCwebservice_bulk.aspx?User=xxxxxx&passwd=xxxxxxxxx&mobil
enumber=xxxxxxx,xxxxxxx,xxxxxxxxx&message=xx xxxxxxx&sid=xxxxxxxx&mtype=N&DR=Y
http://api.smscountry.com/SMSCWebservice_MultiMessages.asp?User=xxxxxx&passwd=x
xxxxxxxx&mno_msg=xxxxxxx^yyyyyyyy~xxxxxxx^yyyyyyy&sid=xx
xxxxxx&mtype=N&DR=Y
4 REPORTS
For accessing delivery report for SMS messages sent during a particular date and
time duration, the following URL, along with the required parameters, needs to be
accessed –
http://api.smscountry.com/smscwebservices_bulk_reports.aspx?user=xxxx&pass
wd=xxxx&fromdate=DD/MM/YYYY 00:00:00 &todate=DD/MM/YYYY 23:59:59
Response: - jobid~mobilenumber~messagestatus~donestamp~message_text~receivestamp#
Sample Response: - 123456~919985111111~2~1/1/2008 11:30PM~test sms~1/1/2008 11:29PM
HTTP API - HELP DOCUMENT
4.2.2 Receiving Dynamic Delivery Report
We also provide you Dynamic Delivery Reports with Call Back Script Option
enabled. With this option, we will send Deliver Reports directly to the URL
specified by you.
To get auto delivery response push at your end you need to provide us a
URL that shall read below parameters from query string.
The table below describes the various types of response from the gateway –
For getting SMS credit balance, the following URL, along with the required parameters,
needs to be accessed –
http://api.smscountry.com/SMSCwebservice_User_GetBal.asp?User=xxx&passwd=xx
S. NO STATUS RESPONSE
1 SMS BALANCE RECEIVED SUCCESSFULLY NUMBER
2 SMS BALANCE NOT RECEIVED SUCCESSFULLY A) INVALID USERNAME
B) INVALID PASSWORD
6.3 SMS containing 8-bit binary data (e.g. for Ring tone/Logo)
http://api.smscountry.com/SMSCwebservice_bulk.aspx?User=wworks&passwd=5hdshj
3&mobilenumber=44983xxxxxx&binmess=
%06%05%04%15%81%00%00&message=%02J%3Ai%1D%BD%B1%91%19%A5%B9%9D
%95%C8%04%00%25%18%C5%12a%06%19av
%10%81%98%11%81%16%12%81&sid=wworks&mtype=R
For any queries or clarifications, please feel free to reach our support team at –
Email: [email protected]