Page 1 of 1

Call to the api doesn't work

Posted: Fri Sep 15, 2017 2:34 pm
by benf45
Hi ,
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);
Please help.

Thank you.

Re: Call to the api doesn't work

Posted: Fri Sep 15, 2017 4:37 pm
by Kode
Come on to the discord server and I'll see if I can help you, it looks fine to me from a quick look though, could be because you are using http not https maybe it's not following the redirect.