This technical document is intended for API developers who wish to use the Infodreamz Technologies N Pvt. Ltd. HTTP API for sending messages, receiving delivery reports and checking account balances.
The document describes the various programming models and commands used by developers when using this API.
The HTTP API could be used for both low and high end messaging services. HTTP is a means for relaying information; the HTTP API can be used with practically any web service application. This is particularly useful for high volume message sending. The HTTP API offers various methods of sending and receiving SMS messages. The document contains specifications for the following methods.
Send messages using HTTP GET.
Receive responses using HTTP GET.
Host: https://app.indiasms.com
Port: 8080
Protocol: HTTP (We also provide SMPP protocol)
Functions: Send SMS, Group SMS, Flash SMS, Unicode SMS, Balance Check, Delivery
Reports and Time Scheduling
https://www.indiasms.com is a decade old firm in the business
TEXT Formathttps://app.indiasms.com/sendsms/sendsms.php?username=your-api-username&password=your-api-password&type=TEXT&sender=My%20SenderId&mobile=9000000000&message=Testing%20HTTP%20API
UNICODE Formathttps://app.indiasms.com/sendsms/sendsms.php?username=your-api-username&password=your-api-password&type=UNICODE&sender=My%20SenderId&mobile=9000000000&message=Testing%20HTTP%20API
FLASH Formathttps://app.indiasms.com/sendsms/sendsms.php?username=your-api-username&password=your-api-password&type=FLASH&sender=My%20SenderId&mobile=9000000000&message=Testing%20HTTP%20API
Query ParamsIndiaSMS is a decade old firm in the business of online bulk SMS services, catering to all types of customers, big, medium and small sized organizations through our innovative solutions for sending group text messages all over India through different sms gateway networks.
https://www.indiasms.com is a decade old firm in the business
TEXT Format https://app.indiasms.com/sendsms/bulksms.php?username=your-api-username&password=your-api-password&type=TEXT&sender=My%20SenderId&mobile=9000000000&message=Testing%20HTTP%20API
UNICODE Formathttps://app.indiasms.com/sendsms/bulksms.php?username=your-api-username&password=your-api-password&type=UNICODE&sender=My%20SenderId&mobile=9000000000&message=Testing%20HTTP%20API
FLASH Formathttps://app.indiasms.com/sendsms/bulksms.php?username=your-api-username&password=your-api-password&type=FLASH&sender=My%20SenderId&mobile=9000000000&message=Testing%20HTTP%20API
Query ParamsIndiaSMS is a decade old firm in the business of online bulk SMS services, catering to all types of customers, big, medium and small sized organizations through our innovative solutions for sending group text messages all over India through different sms gateway networks.
https://www.indiasms.com is a decade old firm in the business
Check Available Balancehttps://app.indiasms.com/sendsms/checkbalance.php?username=your-api-username&password=your+password
Query ParamsIndiaSMS is a decade old firm in the business of online bulk SMS services, catering to all types of customers, big, medium and small sized organizations through our innovative solutions for sending group text messages all over India through different sms gateway networks.
https://www.indiasms.com is a decade old firm in the business
Delivery Check Statushttps://app.indiasms.com/sendsms/dlrstatus.php?username=your-api-username&password=your-api-password&messageid=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Query ParamsIndiaSMS is a decade old firm in the business of online bulk SMS services, catering to all types of customers, big, medium and small sized organizations through our innovative solutions for sending group text messages all over India through different sms gateway networks.
<?php
$mobile = "9213456780,8914325670";
$message = "Test message";
$api_username = "your-api-username";
$api_password = "your-api-password";
$sender = "your-6char-senderid";
$type = "TEXT";
$message = urlencode($message);
$apiUrl ="https://app.indiasms.com/sendsms/bulksms.php";
$url =$apiUrl."?username=".$api_username."&password=".$api_password."&type=".$type."&sender=".$sender."&mobile=".$mobile."&message=".$message;
if( function_exists("curl_init")){
$ch = curl_init();
curl_setopt ( $ch, CURLOPT_URL, $url );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 30 );
curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 0 );
curl_setopt ( $ch, CURLOPT_HEADER, 0 );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
$response = curl_exec ( $ch );
curl_close($ch);
}else{
$return_val = file($url);
$response = $return_val[0];
}
list($send,$msgcode) = explode("|",$response);
if (trim($send) == "SUBMIT_SUCCESS") {
echo "Sent SMS successfully.";
}else{
echo "Unable to Send SMS successfully.";
}
using System.Net;
using System.IO;
WebClient httpclient = new WebClient ();
client.Headers.Add ("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
httpclient.QueryString.Add("username", "xxxx");
httpclient.QueryString.Add("password", "xxxx");
httpclient.QueryString.Add("type", "TEXT");
httpclient.QueryString.Add("sender", "xxxx");
httpclient.QueryString.Add("mobile", "xxxx");
httpclient.QueryString.Add("message", "This is an example message");
string baseurl ="https://app.indiasms.com/sendsms/sendsms.php";
Stream data = client.OpenRead(baseurl);
StreamReader reader = new StreamReader (data);
string s = reader.ReadToEnd ();
data.Close ();
reader.Close ();
return (s);
OR
var client = new RestClient("https://app.indiasms.com/sendsms/sendsms.php?username=your_api_username&password=your_api_password&type=text&sender=your_sender_id&mobile=9823456734&message=Hello!%20This%20is%20a%20test%20");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://app.indiasms.com/sendsms/sendsms.php?username=your_api_username&password=your_api_password&type=text&sender=your_sender_id&mobile=9823456734&message=Hello!%20This%20is%20a%20test%20");
CURLcode ret = curl_easy_perform(hnd);
Imports System.Net
Imports System.IO
Dim client As WebClient = New WebClient
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)")
client.QueryString.Add("username", "xxxx")
client.QueryString.Add("password", "xxxx")
client.QueryString.Add("type", "TEXT")
client.QueryString.Add("mobile", "xxxx")
client.QueryString.Add("sender", "xxxx")
client.QueryString.Add("message", "This is an example message")
Dim baseurl As String = "https://app.indiasms.com/sendsms/sendsms.php"
Dim data As Stream = client.OpenRead(baseurl)
Dim reader As StreamReader = New StreamReader(data)
Dim s As String = reader.ReadToEnd()
data.Close ();
reader.Close ();
return
require 'uri'
require 'net/http'
url = URI("https://app.indiasms.com/sendsms/sendsms.php?username=your_api_username&password=your_api_password&type=text&sender=your_sender_id&mobile=9823456734&message=Hello!%20This%20is%20a%20test%20")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
HttpResponse response = Unirest.get("https://app.indiasms.com/sendsms/sendsms.php?username=your_api_username&password=your_api_password&type=text&sender=your_sender_id&mobile=9823456734&message=Hello!%20This%20is%20a%20test%20") .asString();
curl --request GET \
--url 'https://app.indiasms.com/sendsms/sendsms.php?username=your_api_username&password=your_api_password&type=text&sender=your_sender_id&mobile=9823456734&message=Hello!%20This%20is%20a%20test%20'