Receiving SMS
...
This document describes Reception of SMS through HTTP POST.
Our service is based on that a received message gets sent to the customer's web server, which can then develop their own services.
The client simply specifies their server address in our web interface.
...
The customer wishes to get their messages forwarded to http://server.domain.tld:8080/receive.php.
A message has been received from +4512345678 on the application code 1272 with the text hello world.
Request would look something like this:
Code Block |
---|
POST /receive.php HTTP/1.0
Host: server.domain.tld:8080
Content-type: application/x-www-form-urlencoded
SMS=hello+world&FROM=4512345678&NUMBER=1272
|
...
Name | Description |
---|---|
price | Used for premium rates - the value of the charge should be set in Øre |
statusurl | Should contain an URL, if you wish to receive the statusreport |
returndata | A string of 255 octets, where the client can use it as their own ID |
Example
Code Block |
---|
<?xml version="1.0" encoding="iso-8859-1" ?>
<reply>
<message>Thank you for your message</message>
<price>50</price>
<statusurl>http://server.domain.tld:8080/statusreport.php</statusurl>
<returndata>customer choose ID</returndata>
</reply>
|
...