Wire2air 2way SMS HTTP API

Wire2air provides simple HTTP interface for clients to send and receive
messages from mobile p...
http://[yourserver]/smsreceiver.asp?




     Response from Send SMS APIs

          The API will return a string message ...
STEP3: Wire2air parses the message, and redirect to clients’ server
               based on short code, and prefix assigne...
Nextel                             353
Virgin                             601
US Cellular                        602




 ...
Upcoming SlideShare
Loading in …5
×

sms gateway Api

992 views

Published on

SMS gateway and mobile marketing Get instant action to your marketing Our SMS Marketing Association.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
992
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

sms gateway Api

  1. 1. Wire2air 2way SMS HTTP API Wire2air provides simple HTTP interface for clients to send and receive messages from mobile phone users. HTTP POST can be used in all modern programming languages including ASP, ASP.NET, C++, C#, PHP, VB, VB.NET, command lines, SSH & cURL. A. Send SMS Message using Wire2air Gateway To submit messages from any programming language, you should message in the following format. HTTP URLs http://smsapi.wire2air.com/smsadmin/submitsm.aspx HTTP METHOD Messages should be sent as a HTTP POST using the parameters listed below. One request should be sent per message. HTTP Form Variables Name Description *VERSION 2.0 *USERID YOUR_USERID; PROVIDED BY WIRE2AIR *PASSWORD YOUR_PASSWORD; PROVIDED BY WIRE2AIR *VASID YOUR_VASID; PROVIDED BY WIRE2AIR *PROFILEID YOUR_PROFILEID; PROVIDED BY WIRE2AIR *FROM SHORT CODE NUMBER ; PROVIDED BY WIRE2AIR *TO DESTINATION MOBILE NUMBER. [(country code) + mobile number] *TEXT The Message Text *NETWORKID Network ID of destination network, Wire2air use internal networkid to identify the carriers, LIST ANNEX 1A These are the same networkid passed from our HTTP API when receiving incoming SMS. DeliveryDateTime (optional) Default: Now Date and time for message delivery in UTC format. Example: 19970714T173000Z ;UTC time The following represents July 14, 1997, at 1:30 PM in New York City. ReplyPath Provide your application url to receive replies from user. For example 100 wood avenue south, Iselin, NJ 08830 Phone: 732-744-3369, Fax: 609-324-9876 http://www.wire2air.com. info@wire2air.com
  2. 2. http://[yourserver]/smsreceiver.asp? Response from Send SMS APIs The API will return a string message to the calling application. Successful submission: JOBID: [MOBILENUMBER]:[SMSID] Failed submission: ERR: 301: Failed authentication ERR: 305: Not enough credits Example POST Request [ASP] sstrData = "version=2.0" sstrData = "To=" & [Mobile Number] sstrData = sstrData + "&From=27126" sstrData = sstrData + "&UserId=XXXXX" SstrData = sstrData + "&Password=XXXXX" SstrData = sstrData + "&vasid=XXXX" SstrData = sstrData + "&networkid=44" SstrData = sstrData + "&profileid=2" SstrData = sstrData + "&Text=Demo Message" Set myhttp=CreateObject ("Msxml2.XMLHTTP") Myhttp.open ("POST", "http://smsapi.wire2air.com/smsadmin/submitsm.aspx", false) Myhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" Myhttp.send sstrData Response.write myhttp.responsetext Set myhttp = Nothing B. Receive SMS/Text Messages from Wire2air Gateway How it works? STEP1: User sends a text message to an assigned shortcode. STEP2: Message received by wire2air server from carrier. 100 wood avenue south, Iselin, NJ 08830 Phone: 732-744-3369, Fax: 609-324-9876 http://www.wire2air.com. info@wire2air.com
  3. 3. STEP3: Wire2air parses the message, and redirect to clients’ server based on short code, and prefix assigned. Requirements Client should set a web service to receive messages from wire2air servers. Wire2air will send a message to client server in the following format. HTTP URLS http://[client web service url]? MobileNumber=xxxxxxxx&Operatorid=110&Message=xxxxxxx&SMSINBOXID=3 88&shortcode=xxxx Operatorid: Should be used in Send SMS APIS AS NETWORKID HTTP METHOD GET Parameters MobileNumber: User’s mobile number Operatorid: Networkid of destination network, wire2air use internal networkid to identify the networks, LIST ANNEX 1A Message: Text Message sent by user Rcvd: Message received date & time SMSInboxid: Reference number for all incoming messages Network Identifications for North America (Operatorid) Network Name ID Boost 600 Verizon 11 AT&T 44 SPRINT 455 ALLTEL 18 T-MOBILE 470 Cellular One 168 100 wood avenue south, Iselin, NJ 08830 Phone: 732-744-3369, Fax: 609-324-9876 http://www.wire2air.com. info@wire2air.com
  4. 4. Nextel 353 Virgin 601 US Cellular 602 100 wood avenue south, Iselin, NJ 08830 Phone: 732-744-3369, Fax: 609-324-9876 http://www.wire2air.com. info@wire2air.com

×