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.
How its work?
- User sends a MMS message tagged with “@” e.g @DemoMMS to an assigned shortcode.
- Message received by Wire2Air server from the carriers.
- Wire2Air parses the message, and redirect to clients’ server based on short code, and keyword 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&rcvd=1/1/2009 03:00:00PM&shortcode=xxxx&subject=demo mms&baseurl=[Wire2Air MMS files baseurl]&attachments=[comma limited file names]&keyword=@demomms
HTTP METHOD
GET
Parameters
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:
<?php $sender = $_REQUEST['MobileNumber']; $content = $_REQUEST ['Message']; $inNumber = $_REQUEST ['shortcode']; $Rcvd = $_REQUEST ['Rcvd']; $subject= $_REQUEST ['subject']; $baseurl= $_REQUEST ['baseurl']; $attachments= $_REQUEST ['attachments']; ?>