Call to the api doesn't work

Post here any issues with the API or feature requests
Post Reply
benf45
Posts: 1
Joined: Fri Sep 15, 2017 2:28 pm

Call to the api doesn't work

Post 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.
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Call to the api doesn't work

Post 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.
Post Reply