TEXT MESSAGE DEVELOPER SMS APIS
Receive SMS Text Messages Via HTTP API
How it works?
- STEP1: User sends a text message to an assigned shortcode.
- STEP2: Message received by Wire2Air server from carrier.
- STEP3: Wire2Air parses the message, and redirect to client’s 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. When configured you can pickup values from our GET request in following way using PHP
PHP:
<?php $sender = $_REQUEST['MobileNumber']; $content = $_REQUEST ['Message']; $inNumber = $_REQUEST ['shortcode']; $Rcvd = $_REQUEST ['Rcvd']; ?>
HTTP URLS
http://[client web service url]?
MobileNumber=xxxxxxxx&Message=xxxxxxx&Rcvd=1-2-2015 02:18:30&shortcode=xxxx
HTTP METHOD
GET
Parameters
MobileNumber: User’s mobile number
Message: Text Message sent by user
Rcvd: Message received date & time
shortcode: Texting number to which a text message was sent