|

|
 |
 |
HTTP GET/POST Variables
If you choose to have the messages delivered by HTTP, you may either use our standard parameters,
or create a custom format for compatibility with any existing application.
If you do not specify any custom parameters, we will deliver the message using the default names.
| Default Name |
Custom Parameter |
Data |
| originator |
%o |
The sender's number |
| destination |
%d |
The destination number |
| message |
%m |
The message body |
| time |
%t |
Message timestamp in YYYY-MM-DD HH:MM:SS format |
| unix_time |
%x |
Message timestamp as a Unix timestamp |
| udh |
%u |
The UDH header, eg: for decoding concatenated messages |
| id |
%i |
A unique identifier for the message |
Once you have successfully purchased your geographical number you will need to follow these steps:
- Select Text-In -> Inbound Geographic SMS -> Configure Numbers
- Select Edit on the chosen number
- Specify "HTTP POST" as the action
- Enter distination of the script that will handle your POST. E.g. http://www.example.com/script.php
Example code
Here are some examples of code that can be used with HTTP GET/POST:
|
 |