Home › Forums › Voip Optimisation › Voip Repair 24 › Reply To: Voip Repair 24
Hello Mark,
For #12631 : No web-hooks were involved in our functionality. I just used Curl to fetch data from the API.
———————————————————————————————————————————————–
Here is a snippet for to fetch data of portout order, It takes time to generate response because of that the portout list page takes time to load.
$port_out_url = ‘https://services.inteliquent.com/Services/1.0.0/orderList’;
$Data = ‘{
“privateKey”: “Z0Ainfdg0su6MTfoGgnRhk0B_YYa”,
“productId”: 114,
}’;
$Auth_Carrier = ‘Authorization:Bearer ‘ . $token_id;
$port_out_curl = curl_init($port_out_url);
curl_setopt($port_out_curl, CURLOPT_POST, 1);
curl_setopt($port_out_curl, CURLOPT_HTTPHEADER, array(‘Content-Type: application/json’, ‘charset:UTF-8’, $Auth_Carrier));
curl_setopt($port_out_curl, CURLOPT_POSTFIELDS, $Data);
curl_setopt($port_out_curl, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($port_out_curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($port_out_curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($port_out_curl, CURLOPT_TIMEOUT, 120);
$port_out_result = curl_exec($port_out_curl);
$port_out_result_Data = json_decode($port_out_result, true);
Hope this will help
Thank you