API
Insert URL SMS response
URL intended to receive your incoming SMS
URL: YOUR_CALLBACK_URL
YOUR_CALLBACK_URL contents should be like this
$message =json_decode($_GET["message"]); $obj=array(); $page=dirname(__FILE__).'/result.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 result.json is created in the same workspace as you YOUR_CALLBACK_URL { "title":"clicked link", "phone":"xxxxxxxxxx", "link":"https://www.ardary-sms.com/account/", "date":"2019-07-19 11:33:22" }