Free and immediate reminder Free and immediate reminder
04.13.41.50.70 (appel gratuit depuis un fixe)

Opt-out management

Fields of application

Name Definition
number Mobile number
text Text of the reply
stop_date Opt-out receipt date in format "Y-m-d H:m:s"

The request fields can also been sent as an array

Simple example of a PHP recovery script


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

fputs($fp, 'number : ' . $_POST['number'] . "\n");
fputs($fp, 'text : ' . $_POST['text'] . "\n");
fputs($fp, 'stop_date : ' . $_POST['stop_date'] . "\n");

fclose($fp);

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


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

$numbers = $_POST['number'];
$texts = $_POST['text'];
$stop_dates = $_POST['stop_date'];

for($i=0, $i < count($numbers); $i++)
{
	fputs($fp, 'number : ' . $numbers[$i] . "\n");
	fputs($fp, 'text : ' . $texts[$i] . "\n");
	fputs($fp, 'stop_date : ' . $stop_dates[$i] . "\n");
}

fclose($fp);