Http API

Send Text message API

This URL will enable user to fetch send message.

Send Scheduled message API

This URL will enable user to fetch scheduled message.

Send Unicode message API

This URL will enable user to fetch unicode message.

Send Flash Message API

This URL will enable user to fetch flash message.

string strUrl =  "
msgtxt=hello&state=4"; WebRequest request = HttpWebRequest.Create(strUrl); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream s = (Stream)response.GetResponseStream(); StreamReader readStream = new StreamReader( s ); string dataString = readStream.ReadToEnd(); response.Close(); s.Close(); readStream.Close();
<% option explicit %>
Dim objXMLHTTP, sRemoteURL,posturl //Create & initialize the XMLHTTP object 
Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0") 
sRemoteURL =  "
&msgtxt=hello&state=4"; //Open the connection to the remote server objXMLHTTP.Open "POST", sRemoteURL //If you are behind proxy please mention the proxy ip with port. Or just comment below line... objXMLHTTP.setProxy 2, "" objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" posturl = "User=xxxx&passwd=xxxx&mobilenumber=919xxxxxxxxx&message=xxxx&sid=xxxx&mtype=N&DR=Y" objXMLHTTP.setRequestHeader "Content-Length",LEN(posturl) //Send the request to the eProcessingNetwork Transparent Database Engine objXMLHTTP.Send posturl //store the response response.Write(objXMLHTTp.responseText) %>
Dim strUrl As String
Dim strResp As String
strUrl =
&msgtxt=hello&state=4 strResp = DoWebRequest(strUrl) End Sub 'Do web Request Function Public Function DoWebRequest(url) As String On Error GoTo err_DoWebRequest Dim objXML As Object Set objXML = CreateObject("Microsoft.XMLHTTP") objXML.Open "GET", url, False objXML.Send If (objXML.Status = 404) Then DoWebRequest = "404 Error" Else DoWebRequest = objXML.ResponseText End If Set objXML = Nothing Exit Function err_DoWebRequest: DoWebRequest = "ERROR" Exit Function End Function
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,  "
&msgtxt=hello&state=4"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "user=$user&senderID=$senderID&receipientno=$receipientno&cid=$cid&msgtxt=$msgtxt"); $buffer = curl_exec($ch); if(empty ($buffer)) { echo " buffer is empty "; } else { echo $buffer; } curl_close($ch);