\ Developers API's | Bulk SMS Services Noida, Delhi, India | SMSZones

Developers API's

 Home / Developers API's
Developers API - SMSZones

Developers API's

Integrate SMS API's in your Various Application


Send SMS: http://sms.smszones.com/sendurlcomma.asp?user=profileid&pwd=password&senderid=ABC&mobileno=
9999999989,9999999990,9999999991&msgtext=Hello &priority=High&scheduledDate=mm/dd/yyyy hh:min am
 
Check Balance:  http://sms.smszones.com/balance.asp?user=profileid&pwd=password
 
  ASP Code Sample: (Send SMS)

sResponse = SMSSend(pno, message )
If right(sResponse,15) = "Send Successful" Then
'write your code here
End If
Function SMSSend (strPh,strMsg)
Dim msgResponse
Dim strRequest
Dim strUrl
msgResponse = ""
strPh=right(strPh,10)
If not IsNumeric(strPh) Or len(strPh) <> 10 Then
msgResponse = "Enter valid Mobile Number."
End If
If strMsg = "" Then
msgResponse = "Enter text message."
End If
strUrl = "http://sms.smszones.com/sendurlcomma.asp?"
strRequest = strRequest+"user=profileid"
strRequest = strRequest+"&pwd=pass"
strRequest = strRequest+"&senderid=senderid"
strRequest = strRequest+"&mobileno="+strPh
strRequest = strRequest+"&msgtext="+Server.URLEncode(strMsg)
strUrl = strUrl+strRequest
If msgResponse = "" Then
Dim oXML
Dim sPage
Err.Clear
On Error Resume Next
Set oXML = Server.CreateObject("Msxml2.XMLHTTP")
oXML.Open "get", strUrl , false
oXML.Send
msgResponse = oXML.ResponseText
Set oXML = Nothing
End If
SMSSend = msgResponse
If Err.Number <> 0 Then
SMSSend = "Problem on sending sms : "& Err.Description
End If
End Function
 
  ASP .NET (C#) Code Sample: (Send SMS)

using System;
using System.Data;
using System.Collections;
using System.Web;
using System.IO;
using System.Net;
public void SMSSend()
 {
    WebClient client = new WebClient();
    string baseurl = "http://sms.smszones.com/sendurlcomma.asp?user=profileid&pwd=xxxx&senderid=ABC&mobileno=
    9911111111&msgtext=Hello";
    Stream data = client.OpenRead(baseurl);
    StreamReader reader = new StreamReader(data);
    string s = reader.ReadToEnd();
    data.Close();
    reader.Close();
  }
 
  Java Code Sample:(Send SMS)

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Date;

public class SMSSend {
public static void main(String[] args)
{ try {
Date mydate = new Date(System.currentTimeMillis());

URL url = newURL("http://sms.smszones.com/sendurlcomma.asp?user=profileid&pwd=xxxx&senderid=ABC&mobileno=
9911111111&msgtext=Hello);
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
conn.setRequestMethod("GET");
conn.setDoOutput(true);l
conn.setDoInput(true);
conn.setUseCaches(false);
conn.connect();
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
StringBuffer buffer = new StringBuffer();
while ((line = rd.readLine()) != null)
{
strUrl = "http://bulksmsindia.mobi/sendurlcomma.asp?"
}
System.out.println(buffer.toString());
rd.close();
conn.disconnect();
}catch(Exception e)
{e
.printStackTrace();
}
}}
Note: Required javax.servlet.jar and jdom.jar to execute ( downloadable from internet,add to
classpath ).
 
  PHP Code Sample: (Send SMS)

'-- Use URLEncode for parameter msgtext
?php
$url = "http://sms.smszones.com/sendurlcomma.asp?user=profileid&pwd=xxxx&senderid=ABC&mobileno=9911111111&msgtext=Hello";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$curl_scraped_page = curl_exec($ch);
curl_close($ch);
echo $curl_scraped_page;
?

Call us or email us at info@shashwatco.com, cankgco@shashwatco.com to get more details about our services and price plans.
Call Us 24 X 7
M:+91-9990244112 (WHATSAPP), 9555582292 | T: +91-120-426-7049

What We Do

  • Bulk SMS
  • Email Marketting
  • Short & Long Code
  • Missed Call Alert
  • Voice Calls
  • Toll Free Number
  • Web Design & Development
  • SEO Services
  • Mobile Application Development
  • ERP Development
  • Software Development
  • Web Hosting
  • Website Maintenance
  • Consultancy Services
  • Data Entry Services
Our Services is Best for All Business. MAKING YOUR WEB PRESENCE & BRANDING STRONGER IS OUR JOB!