Smscountry HTTP API
Smscountry HTTP API
Smscountry 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
The following table gives the list of parameters required for sending
message through SMSCountry’s Gateway using the HTTP API.
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:
The Sender-Id should be approved by SMSCountry.
You can have multiple sender Ids activated in your account.
You can send different API calls with different sender ids provided that
the sender id is active for your account.
If an API call is made with a sender id not activated in user account then
by default his “preferred” sender id will be delivered.
If user does not have a preferred sender id then by default “SMSCntry”
will be delivered at end user mobile.
You can change your preferred sender id in “My Account” page
by login to http://www.smscountry.com
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 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 P Picture Message
4 L LOGO
5 F Flash
3. MESSAGING
http://www.smscountry.com/SMSCwebservice.asp?
User=xxxxxx&passwd=xxxxxxxxxxxx&mobilenumber=xxxxxxxxxx&message=xxxxxxxxx&sid
=xxxxxxxx&mtype=N&DR=Y
http://www.smscountry.com/SMSCWebservice.asp?
mobilenumber=xxxxxxxxxx&message=xxxxxxxxx&sid=xxxxxxxx&mtype=N&DR=Y
http://www.smscountry.com/SMSCwebservice.asp?
User=xxxxxx&passwd=xxxxxxxxx&mobilenumber=xxxxxxx,xxxxxxx,xxxxxxxxx&message=xx
xxxxxxx&sid=xxxxxxxx&mtype=N&DR=Y
http://www.smscountry.com/SMSCWebservice_MultiMessages.asp?
User=xxxxxx&passwd=xxxxxxxxx&mno_msg=xxxxxxx^yyyyyyyy~xxxxxxx^yyyyyyy&sid=xx
xxxxxx&mtype=N&DR=Y
4 REPORTS
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
To get auto delivery response push at your end you need to provide us a
URL that shall read below parameters from query string.
jobno (ex:- xxxxxx) , mobilenumber (ex:- 91923XXXXXXX)
status (ex:- integer value, please refer API doc for status details)
DoneTime (ex:-format MM/DD/YYYY HH:MM:SS AM/PM)
messagepart (ex:- sms message sent by you)
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://www.smscountry.com/SMSCwebservice_User_GetBal.asp?User=xxx&passwd=xx
6. ILLUSTRATIVE EXAMPLES
gsmscountry&sid=wworks&mtype=N
6.3 SMS containing 8-bit binary data (e.g. for Ring tone/Logo)
http://www.smscountry.com/SMSCwebservice.asp?
User=wworks&passwd=5hdshj3&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
CONTACT DETAILS
For any queries or clarifications, please feel free to reach our support team at -