Bulk SMS
This presentation is the property of its rightful owner.
Sponsored Links
1 / 8

How to Integrate Bulk SMS API in Java Application PowerPoint PPT Presentation


  • 137 Views
  • Uploaded on
  • Presentation posted in: Advertisement

Bulk SMS API allows application developer to integrate on their application and send the sms to all the numbers at one shot without login to their sms panel. Anyone can integrate the Bulk SMS API into their applications, software, website, etc.,Through API we can able to check the Status of the sent messages, Delivery report, and group delivery report. We can able to send the Unicode messaging also. Once we integrate the Bulk SMS API in any of the application, the application trigger the HTTP API call with all the parameters when on required. The required parameters like SMS Service URL, User Name, Password, Mobile Number, Message, etc.. As soon as call the HTTP API, the api along with all the parameters will be send to SMS Gateway Server and the bulk SMS Gateway evaluate all the parameters and automatically the message will deliver to the given number without login to the SMS panel itself. 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.Properties; public class JavaCode{ public JavaCode() { } public static void main( String[] args) throws Exception{ String postData=""; String retval = ""; //give all Parameters In String String Username ="username"; String Password = "Password"; String MobileNo = "9xxxxxxxxx"; String Message = "Test message from java code"; String SenderID = "XXXXXX"; postData = "username=" Username "&password=" Password "&to=" MobileNo "&sender=" SenderID "&message=" Message; URL url = new URL("http://trans.kapsystem.com/web2sms.php?"); HttpURLConnection urlconnection = (HttpURLConnection) url.openConnection(); urlconnection.setRequestMethod("POST"); urlconnection.setRequestProperty("Content-Type","application/x-www-form- urlencoded"); urlconnection.setDoOutput(true); OutputStreamWriter out = new OutputStreamWriter(urlconnection.getOutputStream()); out.write(postData); out.close(); BufferedReader in = new BufferedReader( new InputStreamReader(urlconnection.getInputStream())); String decodedString; while ((decodedString = in.readLine()) != null) { retval = decodedString; } in.close(); System.out.println(retval); } }For further assistance mail to [email protected] or call on 91 9738010000For About Bulk SMS http://www.kapsystem.comFor Free Bulk SMS Demo http://www.kapsystem.com/freedemo1.php

Download Presentation

How to Integrate Bulk SMS API in Java Application

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


How to integrate bulk sms api in java application

Bulk SMS

How to Integrate Bulk SMS API in Java

Application?

Application

Php


How to integrate bulk sms api in java application

How to Integrate Bulk SMS API in Java Application?

Bulk SMS API allows application developer to integrate on their application and send the sms to all the numbers at one shot without login to their sms panel. Anyone can integrate the Bulk SMS APIinto their applications, software, website, etc.,

Through API we can able to check the Status of the sent messages, Delivery report, and group delivery report. We can able to send the Unicode messaging also.

1. Wake Up Early


How to integrate bulk sms api in java application

How to Integrate Bulk SMS API in Java Application?

1. Wake Up Early

Once we integrate the Bulk SMS APIin any of the application, the application trigger the HTTP API call with all the parameters when on required. The required parameters like SMS Service URL, User Name, Password, Mobile Number, Message, etc.. As soon as call the HTTP API, the api along with all the parameters will be send to SMS Gateway Server and the Bulk SMS Gatewayevaluate all the parameters and automatically the message will deliver to the given number without login to the SMS panel itself.


How to integrate bulk sms api in java application

How to Integrate Bulk SMS API in Java Application?

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.Properties;

public class JavaCode{

public JavaCode() {

}

public static void main( String[] args) throws Exception{

String postData="";

String retval = "";

1. Wake Up Early


How to integrate bulk sms api in java application

How to Integrate Bulk SMS API in Java Application?

//give all Parameters In String

String Username ="username";

String Password = "Password";

String MobileNo = "9xxxxxxxxx";

String Message = "Test message from java code";

String SenderID = "XXXXXX";

postData += "username=" + Username + "&password=" + Password + "&to=" + MobileNo +"&sender=" + SenderID + "&message=" + Message;

URL url = new URL("http://trans.kapsystem.com/web2sms.php?");

HttpURLConnection urlconnection = (HttpURLConnection) url.openConnection();

urlconnection.setRequestMethod("POST");

1. Wake Up Early


How to integrate bulk sms api in java application

How to Integrate Bulk SMS API in Java Application?

urlconnection.setRequestProperty("Content-Type","application/x-www-form-urlencoded");

urlconnection.setDoOutput(true);

OutputStreamWriter out = new OutputStreamWriter(urlconnection.getOutputStream());

out.write(postData);

out.close();

BufferedReader in = new BufferedReader( new InputStreamReader(urlconnection.getInputStream()));

String decodedString;

while ((decodedString = in.readLine()) != null) {

retval += decodedString;

}

in.close();

System.out.println(retval);

}

}

1. Wake Up Early


How to integrate bulk sms api in java application

ADVANTAGE OF KAPSYSTEM SERVICE

MESSAGING FEATURES

www.kapsystem.com

©2015, KAPSYSTEM ( Bulk SMS Service Provider Company) , Email [email protected]


How to integrate bulk sms api in java application

TRUSTED CLIENTS

CONTACT US

KAP Computer Solution Pvt. Ltd

(Bulk SMS Service Provider Company)

HQ: Bangalore (Corporate Office)

Our Presence: Bangalore | Delhi | Mumbai | Hyderabad | Chennai |

Coimbatore | Pune | Kolkata | Ahmedabad | Noida

Mobile : +91 97380 10000 | 1 [Sales] | Email : [email protected]

Web: www.kapsystem.com

www.kapsystem.com

©2015, KAPSYSTEM ( Bulk SMS Service Provider Company) , Email [email protected]


  • Login