API
Insert URL Tracking of click on link
URL to receive click links
URL: YOUR_CALLBACK_URL
YOUR_CALLBACK_URL contents should be like this
$message =json_decode($_GET["clics"]); $obj=array(); $page=dirname(__FILE__).'/clic.json'; if (file_exists($page)) { $file = file_get_contents($page); $res=json_decode($file); if(is_array($res)) $obj = $res; } $fh = fopen($page, 'w') or die ("can't open file"); array_push($obj,$message); fwrite($fh, json_encode($obj)); fclose($fh);
Sample response
In case Of success
A JSON file named clics.json is created in the same workspace as you YOUR_CALLBACK_URL { "title":"clicked link", "phone":"+21693904226", "link":"https:\/\/www.ardary-sms.com:4600\/", "date":"2019-07-08 15:07:03", "idSms":"5d4c52647f06010c3d5fa9ee", "id_sms_api":"45" }