Free SMS API India | Free SMS Gateway API | SMS API Free
Integrate free sms gateway api of India, SMS API Free by SMSINDIAHUB
SMSINDIAHUB Leading Bulk SMS Service Provider with free Bulk SMS Gateway Developer API provider in India. Use our best restful api for your business connect with software, application, eCommerce website and hardware.
free Bulk sms gateway developer api – Send Unlimited SMS via SMS API. we are providing http api, https api, smpp api these all api could be used for both low and high end messaging services. We support various methods of sending and receiving sms.
Free Bulk SMS API Specification and features are below;
Send and receive sms via using get and post method.
Type of API;
SMS API With Sample Code
Promotional SMS – Single Message:
http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0
Transactional SMS – Single Message:
http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0&gwid=2
- user:Your login username.
- password: Your login password.
- msisdn: Single mobile number or multiple mobile numbers separated by comma(10 digits or +91).
- sid: Approved sender id(Only 6 characters).
- msg: Your message content(Minimum 459 characters/3 messages). Note: If you are using template then edit only the dynamic part which is in ##Field##.
- fl: if flash message then 1 or else 0
- gwid: 2 (its for Transactions route.)
- Note: Only 100 mobile numbers are allowed.
Message Response : Single Message
{“ErrorCode”:”000″,”ErrorMessage”:”Success”,”JobId”:”381a8090-b230-42fa-ac04-157cc2142bfa”,”MessageData”:[{“MobileNumber”:”919898xxxxxx “,”MessageParts”:[{“MessageId”: “919898xxxxxx -67e3765cdf034f438a432eacb88d0c14″,”MessagePartId”:1,”MessageText”:”test message”}]}]}
Promotional Multiple Messages
http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx,919898xxxxxx&sid=SenderId&msg=test%20message&fl=0
Transaction Multiple Messages
http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx,919898xxxxxx&sid=SenderId&msg=test%20message&fl=0&gwid=2
- user:Your login username.
- password: Your login password.
- msisdn: Single mobile number or multiple mobile numbers separated by comma(10 digits or +91).
- sid: Approved sender id(Only 6 characters).
- msg: Your message content(Minimum 459 characters/3 messages). Note: If you are using template then edit only the dynamic part which is in ##Field##.
- fl: if flash message then 1 or else 0
- gwid: 2 (its for Transactions route.)
- Note: Only 100 mobile numbers are allowed.
Message Response : Multiple Message
{“ErrorCode”:”000″,”ErrorMessage”:”Success”,”JobId”:”733956ef-f6ab-46fc-81cc-bd3be775c1b7″,”MessageData”:[{“MobileNumber”:”919898xxxxxx”,”MessageParts”: [{“MessageId”:”919898xxxxxx -3af24da377d645b9ab78c0e3ac176e32″,”MessagePartId”:1,”MessageText”:”test message”}]},{“MobileNumber”:”919898xxxxxx “,”MessageParts”:[{“MessageId”:”919898xxxxxx -f01df98db3ba4b39a8b0254277689939″,”MessagePartId”:1,”MessageText”:”test message”}]}]}
Schedule SMS (Promotional):
http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=yourUserID&password=yourPassword&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0&schedtime=2013/12/30 20:30:00 PM
DateTime formate will be
2014/10/06 20:30:00 PM
yyyy/mm/dd hh:mm:ss PM
Schedule SMS (Transaction):
http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=yourUserID&password=yourPassword&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0&gwid=2&schedtime=2013/12/30 20:30:00 PM
DateTime formate will be
2014/10/06 20:30:00 PM
yyyy/mm/dd hh:mm:ss PM
Credit Balance API :
http://cloud.smsindiahub.in/vendorsms/CheckBalance.aspx?user=demo&password=demo
Response : Success#Promotional:0|Transactoinal:95
Check Delivery API :
NOTE:Data of last two days will be available through this API
http://cloud.smsindiahub.in/vendorsms/checkdelivery.aspx?user=demo&password=demo&messageid=messageid
Response : {“MobileNumber”:”919898xxxxxx”,”Status”:”DELIVRD”,”SubmitDate”:”4/23/2018 2:38:32 PM”,”DoneDate”:”4/23/2018 2:38:32 PM”}
The Auth API is a low-level, Restful API for adding strong two-factor authentication to your website or application.
First Step:
- Signup for a 2FA Account.
- Login to Admin Panel and Click on API Key to get your Key.
Endpoints:
- Send Auto Generated SMS OTP:- Below Endpoint(URL) is used to send Auto Generated SMS OTP.
Following Table defines required URL Parameters
API Key | You will get your API key by clicking on “API Key” in Admin Panel. |
---|---|
Contact No. | User’s Contact Number to which OTP to be send. |
Email ID | User’s Email ID to which OTP to be send. |
Following Tables define API Response
Success | {“ErrorCode”:”000″, “status”:”Success”,”detail”:”3b806ea25d00afb9a43874b68042e62a”,”Mail”:”Successfully sent!”} |
---|
Response Status | Response Data | Definition |
---|---|---|
Sucsess | ErrorCode | Represents different error codes for success and failure. |
status | Shows status, success or failure | |
detail | Represents OTP Token ID that you will require to verify OTP. | |
Shows Mail Status |
- Verify SMS OTP Input:- Below Endpoint(URL) is used to Verify SMS OTP Input.
Following Table defines required URL Parameters
API Key | You will get your API key by clicking on “API Key” in Admin Panel. |
---|---|
OTP Token ID | This value, you will get in Send Auto Generated SMS OTP “detail” response. |
OTP | You will get this value from form field that you will create. |
Following Tables define API Response
Success | {“Status”:”Successful”,”detail”:”OTP Match”} |
---|
Response Status | Response Data | Definition |
---|---|---|
Success | Status | Shows status, success or failure |
detail | Shows OTP Match or Mismatch |
SMPP server supports the SMPP protocol, Interface version 0.00v1
Bind Operation and authentication
- Use the following IP Address and Port number to connect to SMPP server.
For message submission [TX- Transmitter mode]
IP – 219.90.67.240
Port – 7887
For receiving delivery report [Rx- Receiver mode]
IP – 219.90.67.240
Port – 7887
For message submission and receiving delivery report [TxRx- Transceiver mode]
IP – 219.90.67.240
Port – 7887
- To authenticate you in our system, when connecting to the SMPP server, please specify
Username /System_ID : smppdemo
Password: demosmpp
- If it is necessary to adjust the TON and NPI settings, be sure to set it to:
Destination TON=1
Destination NPI=1
- System type = 0
- Leave Address range blank if it is not provided by the technical support administrator.
- Throughput/TPS: its Depend on TXrX : 1txrx =20
[Note – For connecting to SMPP Server you will have to validate public IP]
VOICE CALL OTP API
Voice Call API will be provided on demand.
URL Post Status:You can enable or disable url post i.e forwarding of a carbon copy of incoming sms to your url
URL Details: You need to provide your complete url e.g http://yoursite.com/smshandler.php
When an incoming message for your keyword comes in, it will be forwarded to your URL as per following details (with the real values) –
http://yoursite.com/smshandler.php?who=919898123456&what=Keyword
The variables we send to you on the query string are:
who – phone numer of the incoming sms
what – the complete message
Dynamic Respone : You can enable or disable dynamic response as per your requirement. Once we post query string to your url, our server will wait for the response in case dynamic response is enabled. Remeber, dynamic response should be quick enough from your server other wise a time out error may occur.
Make sure there is not HTML in your response.
Dynamic Parameter : You can use any parameter and value in your URL.
Just make sure to pass hardcoded %who , %what , %operator , %circle , %time for parameters representing number of sms sender , message , operator , circle and datetime respectively
We are appending an examples to make you more clear on this subject
E.g : http://domainname.com/yourpage.aspx?who=%who&what=%what&operator=%operator&circle=%circle&datetime=%time
URL Post Status:You can enable or disable url post i.e forwarding of a carbon copy of incoming sms to your url
URL Details: You need to provide your complete url e.g http://yoursite.com/smshandler.php
When an incoming message for your keyword comes in, it will be forwarded to your URL as per following details (with the real values) –
http://yoursite.com/smshandler.php?who=919898123456&what=Keyword
The variables we send to you on the query string are:
who – phone numer of the incoming sms
what – the complete message
Dynamic Respone : You can enable or disable dynamic response as per your requirement. Once we post query string to your url, our server will wait for the response in case dynamic response is enabled. Remeber, dynamic response should be quick enough from your server other wise a time out error may occur.
Make sure there is not HTML in your response.
Dynamic Parameter : You can use any parameter and value in your URL.
Just make sure to pass hardcoded %who , %what , %operator , %circle , %time for parameters representing number of sms sender , message , operator , circle and datetime respectively
We are appending an examples to make you more clear on this subject
E.g : http://domainname.com/yourpage.aspx?who=%who&what=%what&operator=%operator&circle=%circle&datetime=%time
http://international.smsindiahub.in/bulksms/bulksms?username=sih-demo&password=sihdemo&type=0&dlr=1&destination=919999999999&source=WEBSMS&message=Hi this is Test SMS
Parameters are explained below, please note that all the parameters (especially message and url) should be URL-UTF-8 encoded.
username: User name of the SMPP Account
password: Password of the SMPP Account
type: Indicates the type of message. Values for “type”:- 0: Plain Text (GSM 3.38 Character encoding) 1: Flash Message (GSM 3.38 Character encoding) 2: Unicode 3: Reserved 4: WAP Push 5: Plain Text (ISO-8859-1 Character encoding) 6: Unicode Flash 7: Flash Message (ISO-8859-1 Character encoding)
dlr: Indicates whether the client wants delivery report for this message Range of values for “dlr”:- 0: No Delivery report required 1: Delivery report required
destination: Mobile Number to which to Send message to (may or may not include a ‘+’ sign), multiple mobile numbers can be separated by commas (note the comma (‘,’) should be URL encoded).
source: The source address that should appear in the message Max Length of 18 if Only Numeric Max Length of 11 if Alpha numeric If you wish plus (‘+’) should be prefixed to the sender address when the message is displayed on the cell phone, please prefix the plus sign to your sender address while submitting the message (note the plus sign should be URL encoded). Additional restrictions on this field may be enforced by the SMSC.
message: The message to send (Can be used for ‘long’ messages, that is, messages longer than 160 characters for plain text, 140 for flash and 280 for Unicode)For concatenated (long) messages we will be counting as one message for every 153 characters for plain text and 268 characters for Unicode, as the rest of the characters will be used by the system for packing extra information for re-assembling the message on the cell phone. In case of WAP Push (type = 4), this is the text that would appear in the message. Also in the latter case, to send non-English characters in the message, you only have to directly URL encode them (using UTF-8 character encoding scheme).
url: If sending a WAP Push message (type=4), this holds the link that you wish to send, for any other type of message, no value needs to be supplied for this field (if specified will be ignored) . Just like “message” field, this field should also be URL encoded with UTF-8 character encoding (even for sending non-ASCII domain names).
Error Codes:
1701:Success, Message Submitted Successfully, In this case you will receive the response 1701|
1702:Invalid URL Error, This means that one of the parameters was not provided or left blank
1703:Invalid value in username or password field 1704:Invalid value in “type” field
1705:Invalid Message 1706:Invalid Destination 1707:Invalid Source (Sender) 1708:Invalid value for “dlr” field
1709:User validation failed
1710:Internal Error
1025:Insufficient Credit
SMS API With Sample Code
<?php
// Replace with your username
$user = "your_user_name";
// Replace with your API KEY (We have sent API KEY on activation email, also available on panel)
$password = "your_password";
// Replace with the destination mobile Number to which you want to send sms
$msisdn = "Mobile_no";
// Replace if you have your own Six character Sender ID, or check with our support team.
$sid = "SMSHUB";
// Replace with client name
$name = "Anurag Sharrma";
// Replace if you have OTP in your template.
$OTP = "6765R";
// Replace with your Message content
$msg = "Dear ram, Your OTP for cloudwireless.in is : 6547";
$msg = urlencode($msg);
$fl = "0";
// if you are using transaction sms api then keep gwid = 2 or if promotional then remove this parameter
$gwid = "2";
// For Plain Text, use "txt" ; for Unicode symbols or regional Languages like hindi/tamil/kannada use "uni"
$type = "txt";
//--------------------------------------
//step1
$cSession = curl_init();
//step2
curl_setopt($cSession,CURLOPT_URL,"http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?
user=".$user."&password=".$password."&msisdn=".$msisdn."&sid=".$sid."&msg=".$msg."&fl=0&gwid=2");
curl_setopt($cSession,CURLOPT_RETURNTRANSFER,true);
curl_setopt($cSession,CURLOPT_HEADER, false);
//step3
$result=curl_exec($cSession);
//step4
curl_close($cSession);
//step5
echo $result;
?>
<%
'Set the values same as you use in your smsindiahub.in account
sUser = "user"
sPassword ="password"
'Set the mobile number on which you want to send SMS
sNumber = "91123456789"
‘Your Message
sMessage = “Test SMS from SMS INDIA HUB”
' You approved sender id
sSenderID = "WEBSMS"
Dim objXmlHttpMain , sURL
sURL="http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=" & sUser &
"&password=" & sPassword & "&msisdn=" & sNumber & "&sid=" & sSenderID &
"&msg=" & sMessage & "&fl=0"
Set objXmlHttpMain = Server.CreateObject("Msxml2.ServerXMLHTTP")
on error resume next
objXmlHttpMain.open "GET",sURL, False
objXmlHttpMain.setRequestHeader "Content-Type", "text/urlencoded"
objXmlHttpMain.send
‘Store response
response.Write (objXmlHttpMain.responseText)
%>
API Parameters:
user: Your login username.
password: Your login password.
msisdn: Single mobile number or multiple mobile numbers separated by comma(10 digits or +91).
sid: Approved sender id(Only 6 characters).
msg: Your message content(Minimum 459 characters/3 messages). Note: If you are using template
then edit only the dynamic part which is in ##Field##.
fl: if flash message then 1 or else 0
gwid: 2 (it’s for Transactions route.)
Note: For Transaction SMS Please add additional Parameter &gwid=2
Note: This is to update you that above code have been supplied to SMSINDIAHUB by clients. As such,
accuracy is not guaranteed by SMSINDIAHUB.
using System
using System.IO
using System.Net
using System.Text
using System.Web
string sUser = “USERNAME”;
string spwd = “PASSWORD”;
string sNumber = Session["Mobile"].ToString();
string sMessage = “Hi Thanks for Signing-up”;
string sSenderID = “WEBSMS”;
string sURL = “http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user
=” + sUser + “&password=” +
spwd + “&msisdn=” + sNumber + “&sid=” + sSenderID + “&msg=” +
sMessage + “&fl=0?;
string sResponse = GetResponse(sURL);
Response.Write(sResponse);
public static string GetResponse(string sURL)
{
HttpWebRequest request = (HttpWebRequest)WebRequest
.Create(sURL);
request.MaximumAutomaticRedirections = 4;
request.Credentials = CredentialCache.DefaultCredentials;
try
{
HttpWebResponse response = (HttpWebResponse)request
.GetResponse();
Stream receiveStream = response.GetResponseStream(
);
StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
string sResponse = readStream.ReadToEnd();
response.Close();
readStream.Close();
return sResponse;
}
catch
{
return “”;
}
}
Imports System
Imports System.IO
Imports System.Net
Imports System.Text
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim sURL As String
Dim objReader As StreamReader
sURL
="http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=YourUserName&password=YourPassw
ord&msisdn=919898XXXXXX,919227XXXXXX&sid=WEBSMS&msg=Test SMS From SMSHUB&fl=0"
Dim sResponse As WebRequest
sResponse = WebRequest.Create(sURL)
Try
Dim objStream As Stream
objStream = sResponse.GetResponse.GetResponseStream()
objReader = New StreamReader(objStream)
Response.Write(objReader.ReadToEnd())
objReader.Close()
Catch ex As Exception
ex.Message
End Try
End Sub
End Class
SMS INDIA HUB™
Mobile Marketing Solutions Worldwide
Cloud Wireless Technologies India Pvt. Ltd.
Plot Number 16, Rajat Business Chamber, Opp. GK Palace Hotel, MP Nagar Zone – II – Bhopal
Email: - sales@smsindiahub.in | accounts@smsindiahub.in | billing@smsindiahub.in | support@smsindiahub.in
API Parameters:
user: Your login username.
password: Your login password.
msisdn: Single mobile number or multiple mobile numbers separated by comma(10 digits or +91).
sid: Approved sender id(Only 6 characters).
msg: Your message content(Minimum 459 characters/3 messages). Note: If you are using template
then edit only the dynamic part which is in ##Field##.
fl: if flash message then 1 or else 0
gwid: 2 (it’s for Transactions route.)
package javaapplication;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
public class SMSINDIAHUB {
public static String retval="";
public static String SMSSender(String user,String password,String msisdn,String msg,String sid,String fl)
{
String rsp="";
try {
// Construct The Post Data
String data = URLEncoder.encode("user", "UTF-8") + "=" + URLEncoder.encode(user, "UTF-8");
data += "&" + URLEncoder.encode("password", "UTF-8") + "=" + URLEncoder.encode(password, "UTF-8");
data += "&" + URLEncoder.encode("msisdn", "UTF-8") + "=" + URLEncoder.encode(msisdn, "UTF-8");
data += "&" + URLEncoder.encode("msg", "UTF-8") + "=" + URLEncoder.encode(msg, "UTF-8");
data += "&" + URLEncoder.encode("sid", "UTF-8") + "=" + URLEncoder.encode(sid, "UTF-8");
data += "&" + URLEncoder.encode("fl", "UTF-8") + "=" + URLEncoder.encode(fl, "UTF-8");
//Push the HTTP Request
URL url = new URL("http://cloud.smsindiahub.in/vendorsms/pushsms.aspx");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(data);
wr.flush();
//Read The Response
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
// Process line...
retval += line;
}
wr.close();
rd.close();
System.out.println(retval);
rsp = retval;
} catch (Exception e) {
e.printStackTrace();
}
SMS INDIA HUB™
Mobile Marketing Solutions Worldwide
Cloud Wireless Technologies India Pvt. Ltd.
Plot Number 16, Rajat Business Chamber, Opp. GK Palace Hotel, MP Nagar Zone – II – Bhopal
Email: - sales@smsindiahub.in | accounts@smsindiahub.in | billing@smsindiahub.in | support@smsindiahub.in
return rsp;
}
public static void main(String[] args) {
String response = SMSSender("username", "password", "918103857676", "message", "WEBSMS", "0");
System.out.println(response);
}
}
API Parameters:
user: Your login username.
password: Your login password.
msisdn: Single mobile number or multiple mobile numbers separated by comma(10 digits or +91).
sid: Approved sender id(Only 6 characters).
msg: Your message content(Minimum 459 characters/3 messages). Note: If you are using template then edit only
the dynamic part which is in ##Field##.
fl: if flash message then 1 or else 0
gwid: 2 (it’s for Transactions route.)
Note: For Transaction SMS Please add additional Parameter &gwid=2
Note: This is to update you that above code have been supplied to SMSINDIAHUB by clients. As such, accuracy is
not guaranteed by SMSINDIAHUB.package javaapplication;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
public class SMSINDIAHUB {
public static String retval="";
public static String SMSSender(String user,String password,String msisdn,String msg,String sid,String fl)
{
String rsp="";
try {
// Construct The Post Data
String data = URLEncoder.encode("user", "UTF-8") + "=" + URLEncoder.encode(user, "UTF-8");
data += "&" + URLEncoder.encode("password", "UTF-8") + "=" + URLEncoder.encode(password, "UTF-8");
data += "&" + URLEncoder.encode("msisdn", "UTF-8") + "=" + URLEncoder.encode(msisdn, "UTF-8");
data += "&" + URLEncoder.encode("msg", "UTF-8") + "=" + URLEncoder.encode(msg, "UTF-8");
data += "&" + URLEncoder.encode("sid", "UTF-8") + "=" + URLEncoder.encode(sid, "UTF-8");
data += "&" + URLEncoder.encode("fl", "UTF-8") + "=" + URLEncoder.encode(fl, "UTF-8");
//Push the HTTP Request
URL url = new URL("http://cloud.smsindiahub.in/vendorsms/pushsms.aspx");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(data);
wr.flush();
//Read The Response
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
// Process line...
retval += line;
}
wr.close();
rd.close();
System.out.println(retval);
rsp = retval;
} catch (Exception e) {
e.printStackTrace();
}
SMS INDIA HUB™
Mobile Marketing Solutions Worldwide
Cloud Wireless Technologies India Pvt. Ltd.
Plot Number 16, Rajat Business Chamber, Opp. GK Palace Hotel, MP Nagar Zone – II – Bhopal
Email: - sales@smsindiahub.in | accounts@smsindiahub.in | billing@smsindiahub.in | support@smsindiahub.in
return rsp;
}
public static void main(String[] args) {
String response = SMSSender("username", "password", "918103857676", "message", "WEBSMS", "0");
System.out.println(response);
}
}
API Parameters:
user: Your login username.
password: Your login password.
msisdn: Single mobile number or multiple mobile numbers separated by comma(10 digits or +91).
sid: Approved sender id(Only 6 characters).
msg: Your message content(Minimum 459 characters/3 messages). Note: If you are using template then edit only
the dynamic part which is in ##Field##.
fl: if flash message then 1 or else 0
gwid: 2 (it’s for Transactions route.)
Note: For Transaction SMS Please add additional Parameter &gwid=2
Note: This is to update you that above code have been supplied to SMSINDIAHUB by clients. As such, accuracy is
not guaranteed by SMSINDIAHUB.
package javaapplication;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
public class SMSINDIAHUB {
public static String retval="";
public static String SMSSender(String user,String password,String msisdn,String msg,String sid,String fl)
{
String rsp="";
try {
// Construct The Post Data
String data = URLEncoder.encode("user", "UTF-8") + "=" + URLEncoder.encode(user, "UTF-8");
data += "&" + URLEncoder.encode("password", "UTF-8") + "=" + URLEncoder.encode(password, "UTF-8");
data += "&" + URLEncoder.encode("msisdn", "UTF-8") + "=" + URLEncoder.encode(msisdn, "UTF-8");
data += "&" + URLEncoder.encode("msg", "UTF-8") + "=" + URLEncoder.encode(msg, "UTF-8");
data += "&" + URLEncoder.encode("sid", "UTF-8") + "=" + URLEncoder.encode(sid, "UTF-8");
data += "&" + URLEncoder.encode("fl", "UTF-8") + "=" + URLEncoder.encode(fl, "UTF-8");
//Push the HTTP Request
URL url = new URL("http://cloud.smsindiahub.in/vendorsms/pushsms.aspx");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(data);
wr.flush();
//Read The Response
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
// Process line...
retval += line;
}
wr.close();
rd.close();
System.out.println(retval);
rsp = retval;
Documentation of SMPP API
DownloadVOICE OTP API
Voice Call API will be provided on demand.
HTTP API Document
DownloadFor Unicode Message:
Promotional Unicode Message API
http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=yourUserID&password=yourPassword&
msisdn=919898xxxxxx&sid=SenderId&msg=??????? ?????&fl=0&dc=8
Transactional Unicode Message API
http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=yourUserID&password=yourPassword&
msisdn=919898xxxxxx&sid=SenderId&msg=??????? ?????&fl=0&dc=8&gwid=2
HTTP API to submit messages on SMPP :
http://:/bulksms/bulksms?
username=XXXX&password=YYYYY&type=Y&dlr=Z&destination=QQQQQQQQQ&sour
ce=RRRR&message=SSSSSSSS<&url=KKKK>
:XXX.XXX.XXX.XXX
:8080
Download
Get free sms gateway developer api with free credit.
How to integrate bulk SMS API in PHP?
To integrate Bulk SMS in PHP you need to create an account with SMSINDIAHUB then Generate API Key and store it in session. Include API php file in your respective application.
Why SMS API integration?
SMS API integration is the process which is required to integrate SMS services with website, software, application etc. SMS API integration is the easiest way to send automated SMSs directly from sms platform. Integrate SMS API in different languages like PHP, JAVA, .NET, HTML etc.
- Send SMS API
- Balance Check API
- Unicode SMS API
- Single SMS API
- Multiple SMS API
- Delivery check API
- 2FA API
- Long Code API
- Short Code API
- Voice Call OTP API
- OTP SMS API
- XML API
- International SMS API