SlideShare une entreprise Scribd logo
1  sur  4
Télécharger pour lire hors ligne
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
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
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
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

Contenu connexe

Similaire à sms gateway Api

Commscope-Andrew PWR-COBRA-1
Commscope-Andrew PWR-COBRA-1Commscope-Andrew PWR-COBRA-1
Commscope-Andrew PWR-COBRA-1savomir
 
Lan chat system
Lan chat systemLan chat system
Lan chat systemWipro
 
Web service api - InfoSMS By InforUMobile
Web service api - InfoSMS By InforUMobileWeb service api - InfoSMS By InforUMobile
Web service api - InfoSMS By InforUMobileinforumobile
 
Tamim Rihawi Cv 2011
Tamim Rihawi Cv 2011Tamim Rihawi Cv 2011
Tamim Rihawi Cv 2011Tamim2009
 
Tamim Rihawi Cv 2011
Tamim Rihawi Cv 2011Tamim Rihawi Cv 2011
Tamim Rihawi Cv 2011Tamim2009
 
AUTOMATIC CAR PARKING SYSTEM.pptx
AUTOMATIC CAR PARKING SYSTEM.pptxAUTOMATIC CAR PARKING SYSTEM.pptx
AUTOMATIC CAR PARKING SYSTEM.pptxmejanur
 
การเชื่อมต่ออินเทอร์เน็ต
การเชื่อมต่ออินเทอร์เน็ตการเชื่อมต่ออินเทอร์เน็ต
การเชื่อมต่ออินเทอร์เน็ตJL'mind Chutimon
 
Junos routing overview from Juniper
Junos routing overview from JuniperJunos routing overview from Juniper
Junos routing overview from JuniperNam Nguyen
 
Gts cloud mmp http api-sept2017
Gts cloud mmp http api-sept2017Gts cloud mmp http api-sept2017
Gts cloud mmp http api-sept2017Pollux Assontia
 
Ipv6 the next generation protocol
Ipv6 the next generation protocolIpv6 the next generation protocol
Ipv6 the next generation protocolPRADEEP Cheekatla
 
Sms terms and glossary
Sms terms and glossarySms terms and glossary
Sms terms and glossary2sms, LLC
 
Win ppt
Win pptWin ppt
Win pptnimay1
 
Paxton Access 460-210-US Instruction Manual
Paxton Access 460-210-US Instruction ManualPaxton Access 460-210-US Instruction Manual
Paxton Access 460-210-US Instruction ManualJMAC Supply
 

Similaire à sms gateway Api (20)

Wimax
WimaxWimax
Wimax
 
Socket Programming
Socket ProgrammingSocket Programming
Socket Programming
 
SMS On Labs
SMS On LabsSMS On Labs
SMS On Labs
 
Ip addressing upload
Ip addressing uploadIp addressing upload
Ip addressing upload
 
Commscope-Andrew PWR-COBRA-1
Commscope-Andrew PWR-COBRA-1Commscope-Andrew PWR-COBRA-1
Commscope-Andrew PWR-COBRA-1
 
Lan chat system
Lan chat systemLan chat system
Lan chat system
 
Os 2
Os 2Os 2
Os 2
 
CAT III Answer Key.pdf
CAT III Answer Key.pdfCAT III Answer Key.pdf
CAT III Answer Key.pdf
 
Web service api - InfoSMS By InforUMobile
Web service api - InfoSMS By InforUMobileWeb service api - InfoSMS By InforUMobile
Web service api - InfoSMS By InforUMobile
 
Kerberos protocol
Kerberos protocolKerberos protocol
Kerberos protocol
 
Tamim Rihawi Cv 2011
Tamim Rihawi Cv 2011Tamim Rihawi Cv 2011
Tamim Rihawi Cv 2011
 
Tamim Rihawi Cv 2011
Tamim Rihawi Cv 2011Tamim Rihawi Cv 2011
Tamim Rihawi Cv 2011
 
AUTOMATIC CAR PARKING SYSTEM.pptx
AUTOMATIC CAR PARKING SYSTEM.pptxAUTOMATIC CAR PARKING SYSTEM.pptx
AUTOMATIC CAR PARKING SYSTEM.pptx
 
การเชื่อมต่ออินเทอร์เน็ต
การเชื่อมต่ออินเทอร์เน็ตการเชื่อมต่ออินเทอร์เน็ต
การเชื่อมต่ออินเทอร์เน็ต
 
Junos routing overview from Juniper
Junos routing overview from JuniperJunos routing overview from Juniper
Junos routing overview from Juniper
 
Gts cloud mmp http api-sept2017
Gts cloud mmp http api-sept2017Gts cloud mmp http api-sept2017
Gts cloud mmp http api-sept2017
 
Ipv6 the next generation protocol
Ipv6 the next generation protocolIpv6 the next generation protocol
Ipv6 the next generation protocol
 
Sms terms and glossary
Sms terms and glossarySms terms and glossary
Sms terms and glossary
 
Win ppt
Win pptWin ppt
Win ppt
 
Paxton Access 460-210-US Instruction Manual
Paxton Access 460-210-US Instruction ManualPaxton Access 460-210-US Instruction Manual
Paxton Access 460-210-US Instruction Manual
 

sms gateway Api

  • 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. 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. 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. 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