SMS Http API code
Service Category
ss

SMS HTTP API Code

Bulk SMS API Documentation (Single/multiple SMS via HTTP) for website/  integration

Send SMS:


http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?username=username&password
Bulk Sms API =password&sendername=sender id&mobileno=919999999999&message=Hello


Sent Report:

http://bulksms.mysmsmantra.com:8080/WebSMS/sentreport.jsp?username=username&password=
password&fromdate=DD-MM-YYYY&todate=DD-MM-YYYY

Check Balance:

http://bulksms.mysmsmantra.com:8080/WebSMS/balance.jsp?username=username&password=password

Change Password:

http://bulksms.mysmsmantra.com:8080/WebSMS/changepassword.jsp?username=username&
password=password&newpassword=aaaa
Above HTTP API Code are fully compatible with PHP , ASP , Dot Net,JSP-Java integration.

Note: some hosting service provider not support port 8080 kindly consult with them to open port 8080 for website http://bulksms.mysmsmantra.com:8080


Bulk SMS Developer API

Following PHP code might be helpful for you

?php
$url = "http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?username=username&password
=password&sendername=sender id&mobileno=919999999999&message=Hello''
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$curl_scraped_page = curl_exec($ch);
curl_close($ch);
echo $curl_scraped_page;
?

-----------------------------------------------------------------------------------------------------

For ASP.NET Code


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.IO;
using System.Net;
public void SMSSend()
{
 WebClient client = new WebClient();
    string baseurl = "http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?username=username&password
=password&sendername=sender id&mobileno=919999999999&message=Hello";
    Stream data = client.OpenRead(baseurl);
    StreamReader reader = new StreamReader(data);
    string s = reader.ReadToEnd();
    data.Close();
    reader.Close();
}

----------------------------------------------------------------------------------------------------------------------------


PHP CODE  Developer API


<?php
// Textlocal account details
$username = urlencode('username');
$password = urlencode('passwrod');

// Message details
$numbers = urlencode(999999999);
$sender = urlencode('xxxxxx');
$message = urlencode('This is your message');

// Prepare data for POST request
$data = 'username=' . $username . '&password=' . $password . '&mobileno=' . $numbers . "&sendername=" . $sender . "&message=" . $message;

// Send the GET request with cURL
$ch = curl_init('http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?'.$data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

// Process your response here
echo $response;
?>


---------------------------------------------------------------------------------------------------------


VB Script

Dim sUrl,
Dim sAPI_ID, sPassword, sUsername, sMobileNo, sText,ssendername
Dim oXMLHTTP, sPostData, sResult
sUrl = “http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?”
sPassword = “xxxx”
sUsername = “xxxx”
sMobileNo = “xxxx”
ssendername = “xxxx”
sText = “This is an example message”
sPostData = sPostData & “&username=” & sUsername
sPostData = sPostData & “&password=” & sPassword
sPostData = sPostData & “&sendername=” & ssendername
sPostData = sPostData & “&mobileno=” & sMobileNo
sPostData = sPostData & “&message=” & sText
Set oXMLHTTP = Server.CreateObject(“Microsoft.XMLHTTP”)
oXMLHTTP.Open “POST”, sUrl, false
oXMLHTTP.SetRequestHeader “Content-Type”, “application/x-www-
form-urlencoded”
oXMLHTTP.Send sPostData
sResult = oXMLHTTP.responseText
Set oXMLHTTP = nothing
Response.Write sResult

----------------------------------------------------------------------------------------------------------

for more details contact our executive.

Tel : 011-41625695 , 011-46563575 ,
Sales/Support : 09911344466 , 09911882220
(Monday – Friday 10 AM to 6 PM)
Email:: info@mysmsmantra.in

 
 


All India Bulk Sms Services