Sign-in
Pelagian Softwares SMS Developer API & HTTP
Updated 28 Feb, 2015

Pelagian Softwares SMS  HTTP API Document

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

http://www.pelagiansoftwares.com/mobile/smsapi.php?apikey=key_for_unique_sender_id&Group=ANY+TEXT&dmobile=919829500343&sms_msg=TEXT+MESSAGE

PHP Example

<?php
$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.

Our Product

Restaurant Billing Software

POS for Restaurant, Bar, Cafe, Sweet Corner, Try Free. Low cost Software

Room Billing System

Guest Checkin, Checkout, advance reservation with simple dashboard system.

Payroll Software

Easy and simple salary software.

Related article