Top Banner
How to integrate bulk sms api in ASP.NET C# Script
7
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How to integrate bulk sms api in asp.net c# script

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

Page 2: 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).

Page 3: How to integrate bulk sms api in asp.net c# script

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

Page 4: How to integrate bulk sms api in asp.net c# script

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 =

Page 5: How to integrate bulk sms api in asp.net c# script

(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 “”;}}

Page 6: How to integrate bulk sms api in asp.net c# script

MESSAGING FEATURES

www.kapsystem.com

ADVANTAGE OF KAPSYSTEM

SERVICE

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

Page 7: How to integrate bulk sms api in asp.net c# script

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]