Wire2Air Receive SMS & MMS HTTP API
Wire2air provides simple HTTP interface for clients to receive MMS 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, commandlines, SSH & cURL.
Receive SMS & MMS Messages from Wire2air Gateway
How its work?
STEP1: User sends a MMS message tagged with “@” e.g
@DemoMMS to an assigned shortcode.
STEP2: Message received by Wire2Air server from the carriers.
STEP3: Wire2Air parses the message, and redirect to clients’ server
based on short code, and keyword assigned.
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://[client web service url]?mobilenumber=xxxxxxxx&rcvd=1/1/2009 03:00:00PM&shortcode=xxxx&subject=demo mms&baseurl=[Wire2Air MMS files baseurl]&attachments=[comma limited file names]&keyword=@demomms
mobilenumber: User’s mobile number
message: Text Message sent by a user
rcvd: Message received date & time
shortcode: Short code assigned
subject: MMS subject message
baseurl: This is MMS files location base URL e.g http://mms.wire2air.com/mms/mmsinbox/
attachments: Comma delimited files list; e.g 0.smil,1.jpg,2.txt
<?php $sender = $_REQUEST['MobileNumber']; $content = $_REQUEST ['Message']; $inNumber = $_REQUEST ['shortcode']; $Rcvd = $_REQUEST ['Rcvd']; $subject= $_REQUEST ['subject']; $baseurl= $_REQUEST ['baseurl']; $attachments= $_REQUEST ['attachments']; ?>