Wire2Air Subscribe User API
Wire2air provides simple HTTP interface for clients to register available keyword for a given short code. HTTP POST or GET can be used in all modern programming languages including ASP, ASP.NET, C++, C#, PHP, VB, VB.NET, command lines, SSH & cURL.
HTTP URLs:
http://mzone.wire2air.com/mserver/api/SubscribeUser.aspx
HTTP METHOD
Messages can be sent as a HTTP POST or GET using the parameters listed below. One request should be sent per message.
HTTP Form Variables
| Name | Description | Max Size |
|---|---|---|
| *APPKEY | YOUR_APPKEY; PROVIDED BY WIRE2AIR | As provided |
| *SHORTCODE | PROVIDED BY WIRE2AIR, e.g 27126 | As provided |
| *MOBILE NUMBER | PROVIDED BY WIRE2AIR, e.g 27126 | 20 |
| *KEYWORD | CAMPAIGN KEYWORD | 20 |
| MESSAGE | OPTIONAL: WELCOME TEXT MESSAGE | 160 |
| NAME | OPTIONAL: SUBSCRIBER FULL NAME | 100 |
| EMAILADDRESS | OPTIONAL | 100 |
| CUSTOM1 | OPTIONAL | 100 |
| CUSTOM2 | OPTIONAL | 100 |
| CUSTOM3 | OPTIONAL | 100 |
| CUSTOM4 | OPTIONAL | 100 |
| DOB | OPTIONAL; FORMAT: MM/DD/YYYY | 100 |
| ACTION | ADD: Subscribe user, REMOVE:UNSUBSCRIBEUSER
OPTIONA: default: ADD |
Response from subscribe users API
The API will return a string message to the calling application.
Successful Message
ok
Error Message Responses:
Err:700:Missing Shortcode
Err:701:Missing VASID
Err:702:Missing Keyword/Invalid Keyword
Err:300:Invalid User credentials
Err:720:Missing Mobile Number
Err:701:Missing VASID
Err:702:Missing Keyword/Invalid Keyword
Err:300:Invalid User credentials
Err:720:Missing Mobile Number
