'https://integration-webhook.mango-office.ru/webhookapp/common?code=4a4b4174-7007-460c-87a4-b29082d71985&Source=Other&API_key=o1l873fb9tshgu0d03ddoldu81wdh8gv&Action=Callback&EmployeeNUM=115&TelNumbr=89137921801', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', ) ); $response = curl_exec($curl); curl_close($curl); return $response; //echo $response; } function writeToLog($data, $title = '') { $log = "\n------------------------\n"; $log .= date("Y.m.d G:i:s") . "\n"; $log .= (strlen($title) > 0 ? $title : 'DEBUG') . "\n"; $log .= print_r($data, 1); $log .= "\n------------------------\n"; file_put_contents(getcwd() . '/hook.log', $log, FILE_APPEND); return true; } //writeToLog($_REQUEST); $res = call(); return $res;