how to integrate bulk sms api in asp.net c# script

7
How to integrate bulk sms api in ASP.NET C# Script

Upload: kapsystem-bulk-sms-service-provider-company

Post on 12-Aug-2015

154 views

Category:

Technology


5 download

TRANSCRIPT

How to integrate bulk sms api in ASP.NET C# Script

Benefits of using HTTP API:

HTTP API can send more than 100 messages at a time via any kind of application/portal. You can check the balance of your account with expiry date via your application/portal.You can check the Delivery status of your single or group SMS everything in a single places without login your web interface.Unicode API allows you to send SMS in different languages (Tamil, Hindi, Telugu, Malayalam, Guajarati, and Marathi).

How does it work?

A request to the API is done by calling a URL with some required parameters (User Name, Password, Sender ID, Mobile Number, Message).When a request is made, the API along with all the parameters send to SMS Gateway server and SMS Gateway server process the request and generate response for the particular request immediately.KAPSYSTEM provides the Bulk SMS Gateway with HTTP API(HTTP) to be integrated in different programming language asp.net, php, Java

using System”using Systemusing System.IOusing System.Netusing System.Textusing System.Webstring sUser = “USERNAME”;string spwd = “PASSWORD”;string sNumber = Session["Mobile"].ToString();string sMessage = “Test SMS From Our Company”;string sSenderID = “WEBSMS”;string sURL = “http://<%= domainname %>/smsapi/pushsms.aspx?user=” + sUser + “&pwd=” + spwd + “&to=” + sNumber + “&sid=” + sSenderID + “&msg=” + sMessage + “&fl=0?;string sResponse = GetResponse(sURL);Response.Write(sResponse);public static string GetResponse(string sURL){HttpWebRequest request =

(HttpWebRequest)WebRequest.Create(sURL);request.MaximumAutomaticRedirections = 4;request.Credentials = CredentialCache.DefaultCredentials;try{HttpWebResponse response = (HttpWebResponse)request.GetResponse();Stream receiveStream = response.GetResponseStream();StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);string sResponse = readStream.ReadToEnd();response.Close();readStream.Close();return sResponse;}catch{return “”;}}

MESSAGING FEATURES

www.kapsystem.com

ADVANTAGE OF KAPSYSTEM

SERVICE

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

TRUSTED CLIENTS

www.kapsystem.com

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]: www.kapsystem.com

CONTACT US

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