When i make a call to the api i always get no response.
I usually use this to make the call:
Code: Select all
ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://webservice.fanart.tv/v3/movies/395992');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('api-key: ******************', 'client-key: ********************'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$json = curl_exec($ch);
$results = json_decode($json, true);
Thank you.