I am using the following code to retrieve video ID, title, thumbnail, duration and tags.
$dailymotion = "https://api.dailymotion.com/video/xreczc?fields=title,duration,thumbnail_url,id,tags";
$curl = curl_init($dailymotion);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$return = curl_exec($curl);
curl_close($curl);
$results = json_decode($return, true);
print_r($results);
However it returns empty/blank page. I am using this on my localhost what could be wrong? I can call https://api.dailymotion.com/video/xreczc?fields=title,duration,thumbnail_url,id,tags directly in the browser and it works.
Any help, or ideas?