|
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 apikey :- Unique API Key Get Key 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.php?apikey=key_for_unique_sender_id&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.php?userid=YOURUSERID&userpass=YOURPASSWORD PHP Example $ch = curl_init('http://www.pelagiansoftwares.com/mobile/smsapi.php?'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "apikey=key_for_unique_sender_id&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.php?apikey=key_for_unique_sender_id&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 For any technical queries, feel free to Contact Us to our technical support team.
|