To receive SMS text messages to your platform, simply add the URL to your number or keyword settings. We will post the following parameters to you:

Parameters Type Information
JSON String A string JSON array. For more details, please see the information below.

Here is an example of the JSON parameter:

[
	"447712345678",
	"60300",
	"MY-KEYWORD",
	"MY-SUB-KEYWORD",
	"This text message was sent to the short code 60300."
]

You can use the json_decode() function in PHP to convert this string into a PHP variable.

The value of the first element is a string which contains the number of the sender. The value of the second element is a string which contains the number the message was sent to.

The value of the third element is a string which contains the keyword if a match was found otherwise it will be an empty string. The value of the fourth element is a string which contains the sub keyword if a match was found otherwise it will be an empty string.

The value of the fifth element is a string which contains the actual text message that was sent. It will NOT contain the keyword or sub keyword.

Sample code

<?php
    
function Compare($RemoteAddress$IPAddress) {
        
$Array1 explode('.'$RemoteAddress, -1);
        
$Array2 explode('.'$IPAddress, -1);
        
        return (
implode('.'$Array1) == implode('.'$Array2)) ? TRUE FALSE;
    }
    
    if(isset(
$_POST['JSON'])) {
        if(
Compare($_SERVER['REMOTE_ADDR'], gethostbyname('www.onesixty.co.uk'))) {
            list(
$Sender$Number$Keyword$SubKeyword$Message) = json_decode($_POST['JSON'], TRUE);
        }
    }
?>

You now have the following PHP variables available: $Sender, $Number, $Keyword, $SubKeyword and $Message.

Pricing

Get started by visiting the store.

POA for 100,000+ SMS text messages.

Speak to a real person

(01323) 800 160

One direct number for all enquiries - sales and support.

Monday - Friday, 10am to 6pm.

Clear SMS pricing

SMS text messages from just 2.99p. Lower prices available for an agreeable monthly quota.

Screenshot 2 Screenshot 3