• en
    • fr
Contact : +33(0)4.13.41.50.70
  • en
    • fr

SMS Inbounds

Fields of application

Name Definition
message_id Ticket of the original message
number Mobile number
text Text of the inbound SMS
sim_card_number Sim card number which received the SMS
reception_date Date of when the inbound SMS was received, in the format “Ymd H:m:s” (Y-m-d H:i:s)

The request fields can also been sent as an array

 

Simple sample of PHP scratching, with arrays, in your script

$fp = fopen(‘callbacks.txt’, ‘a’);

fputs($fp, ‘message_id : ‘ . $_POST[‘message_id’] . “n”);
fputs($fp, ‘number : ‘ . $_POST[‘number’] . “n”);
fputs($fp, ‘text : ‘ . $_POST[‘text’] . “n”);
fputs($fp, reception_date : ‘ . $_POST[reception_date] . “n”);

fclose($fp);

Simple sample of PHP scratching, with arrays, in your script

$fp = fopen(‘callbacks.txt’, ‘a’);

$message_ids = $_POST[‘message_id’];
$numbers = $_POST[‘number’];
$texts = $_POST[‘text’];
$reception_dates = $_POST[reception_date];

for($i=0, $i < count($messages_ids); $i++)
{
fputs($fp, ‘message_id : ‘ . $message_ids[$i] . “n”);
fputs($fp, ‘number : ‘ . $numbers[$i] . “n”);
fputs($fp, ‘text : ‘ . $texts[$i] . “n”);
fputs($fp, reception_date : ‘ . $reception_dates[$i] . “n”);
}

fclose($fp);