Get CDN status

Checks whether the specified ip address is part of the Medianova network.

Parameters

Return Values

Example PHP Code

<?php
$user_key="Your User Key"; 
$user_secret="Your User Secret";
$ip_address="ipAddress";
$service_url = 'https://api.medianova.com/v1/is-cdn-ip?user_key='.$user_key.'&user_secret='.$user_secret.'&ip='.$ip_address;

$ch = curl_init($service_url);
curl_setopt($ch,CURLOPT_CRLF, true);
$curl_response = curl_exec($ch);
curl_close($curl);
$decoded = json_decode($curl_response);
?>

Example Output

{
   "isCdnIp":true
}

 

Was this post helpful?