I whitelisted my ip address on API access page but still it is returning empty response. Can someone please help me out??
- Thanks in advance!!
My PHP:
<?php 
 $ch = curl_init(); 
$data = array("to" => "streams.cdn0077.com");
        // set url 
        curl_setopt($ch, CURLOPT_URL, "https://api.wmspanel.com/v1/routes/57b4fbbcdf224fb0fd00025e?client_id=XXXXXXX&api_key=ZZZZZZZZZZZZZ"); 
        //return the transfer as a string 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
		curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data));
        // $output contains the output string 
        $output = curl_exec($ch); 
        // close curl resource to free up system resources 
        curl_close($ch); 
print_r($output);
?>