Http API

Send Text message API

This URL will enable user to fetch send message.

http://59.162.167.52/api/MessageCompose?admin=info@highlean.com&user=sales@highlean.com:password&senderID=HIGHLN&receipientno=8979560332&msgtxt=hello&state=4

Send Scheduled message API

This URL will enable user to fetch scheduled message.

http://59.162.167.52/api/MessageCompose?admin=info@highlean.com&user=sales@highlean.com:password&senderID=HIGHLN&receipientno=8979560332&msgtxt=hello&state=4&
schedule_date=2015-03-30&schedule_time=22:20:41

Send Unicode message API

This URL will enable user to fetch unicode message.

http://59.162.167.52/api/MessageCompose?admin=info@highlean.com&user=sales@highlean.com:password&senderID=HIGHLN&receipientno=8979560332&msgtype=4&dcs=8&ishex=1&
msgtxt=hello&state=4

Send Flash Message API

This URL will enable user to fetch flash message.

http://59.162.167.52/api/MessageCompose?admin=info@highlean.com&user=sales@highlean.com:password&senderID=HIGHLN&receipientno=8979560332&msgtype=7&dcs=240&ishex=1&
msgtxt=hello&state=4

string strUrl =  "http://59.162.167.52/api/MessageCompose?admin=info@highlean.com&user=sales@highlean.com:password&senderID=HIGHLN&receipientno=9999560332&
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();
<%@ ENABLESESSIONSTATE = False %>
<% option explicit %>
<% 
Dim objXMLHTTP, sRemoteURL,posturl //Create & initialize the XMLHTTP object 
Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0") 
sRemoteURL =  "http://59.162.167.52/api/MessageCompose?admin=info@highlean.com&user=sales@highlean.com:password&senderID=HIGHLN&receipientno=9999560332
&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, "192.168.1.210:6666" 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 = http://59.162.167.52/api/MessageCompose?admin=info@highlean.com&user=sales@highlean.com:pass&senderID=HIGHLN&receipientno=9999560332
&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,  "http://59.162.167.52/api/MessageCompose?admin=info@highlean.com&user=sales@highlean.com:password&senderID=HIGHLN&receipientno=9999560332
&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);