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:
API Key
Destination Mobile No.
Message Text
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:
apikey :- Unique API Key
dmobile :- Destination mobile number
Group: - Any Text
sms_msg:- Message to be send
Command Line for Sending Message:
Bulk SMS API
https://www.pelagiansoftwares.com/mobile/smsapi.php?apikey=key_for_unique_sender_id&Group=ANY+TEXT&dmobile=918824560540&sms_msg=TEXT+MESSAGE
PHP Example
$ch = curl_init('https://www.pelagiansoftwares.com/mobile/smsapi.php?');ASP.Net Example
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "apikey=key_for_unique_sender_id&Group=ANY+TEXT&dmobile=918824560540&sms_msg=TEXT+MESSAGE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$data = curl_exec($ch);
?>
string strUrl = "https://www.pelagiansoftwares.com/mobile/smsapi.php?apikey=key_for_unique_sender_id&Group=ANY+TEXT&dmobile=918824560540&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.