pelagiansoftwares.com
Home | Bulk SMS | Affiliate
accounting | billing | education | marketting | office utilities & forms | stock/inventory
       not a registered user, sign up | Forgot Password
     
 
Pelagian Softwares SMS  HTTP API Document
Overview:
This document is intended for users, who wish to send message-using HTTP (Hyper Text Transfer Protocol) features or develops applications using the SMS  Gateway for sending SMS messages. Gateway can be accessed through HTTP protocol by submitting values by GET method.
Methods of sending SMS:
SMPP
HTTP
Web SMS

We will cover HTTP method in this document. Additional documentation also available for other methods.

SMS Gateway can be accessed HTTP by submitting values by GET method with all required message parameters and mobile numbers.
You need to have:
1. Username
2. Password
3. Destination Mobile No.
3. Message Text
4. Sender ID

Sending Messages:
For sending single SMS message, gateway requires various parameters including username, password & apikey for authentication purposes. All the parameters need to be sent via HTTP protocol using the GET method. The following are the parameters required:

userid :- Your registered Usernameg
userpass :- Your registered Password
senderid :- Sender ID
Dmobile :-  Destination mobile number
Group: - Any Text
sms_msg:-  Message to be send

Command Line for Sending Message:
Bulk SMS API
http://www.pelagiansoftwares.com/mobile/smsapi.asp?userid=YOURUSERID&userpass=YOURPASSWORD&senderid=YOURSENDERID&Group=ANY+TEXT&dmobile=919829500343&sms_msg=TEXT+MESSAGE

Please Note : Do not Add more than 100 numbers in one loop.

Balance Check API
http://www.pelagiansoftwares.com/mobile/balanceCredits.asp?userid=YOURUSERID&userpass=YOURPASSWORD

PHP Example

<?
$ch = curl_init('http://www.pelagiansoftwares.com/mobile/smsapi.asp?');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "userid=YOURUSERID&userpass=YOURPASSWORD&senderid=YOURSENDERID&Group=ANY+TEXT&dmobile=919829500343&sms_msg=TEXT+MESSAGE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$data = curl_exec($ch);
?>

ASP.Net Example

string strUrl = "http://www.pelagiansoftwares.com/mobile/smsapi.asp?userid=YOURUSERID&userpass=YOURPASSWORD&senderid=YOURSENDERID&Group=ANY+TEXT&dmobile=919829500343&sms_msg=TEXT+MESSAGE";
WebRequest request = HttpWebRequest.Create(strUrl);
HttpWebResponse response = (HttpWebResponse)request.EndGetResponse();
Stream s = (Stream)response.GetResponseStream();
StreamReader readStream = new StreamReader( s );
string dataString = readStream.ReadToEnd();
response.Close();
s.Close();
readStream.Close();

ASP Example

<%

smsapi = "http://www.pelagiansoftwares.com/mobile/smsapi.asp?userid=YOURUSERID&userpass=YOURPASSWORD&senderid=YOURSENDERID&Group=ANY+TEXT&dmobile=919829500343&sms_msg=TEXT+MESSAGE"

Set geturl = CreateObject("Microsoft.XMLHTTP") 
geturl.Open "get", smsapi, False 
geturl.Send 
strSize = geturl.getResponseHeader("Content-Length")
strFileContents = geturl.responseText 

 

%>

For any technical queries, feel free to contact our technical support team at mail@pelagiansoftwares.com


 Privacy Statement | Payment Terms | Contact Us | About Us
© Pelagian Softwares 2007, All right reserved