dan-coulter / phpflickr

PHP Wrapper for the Flickr API
GNU General Public License v2.0
207 stars 128 forks source link

Getting false response #79

Closed maan81 closed 7 years ago

maan81 commented 7 years ago

I am getting false response, with no errors. I used my key and secret.

Please, I am not not sure where to look into.

require_once("phpflickr/phpFlickr.php");`
$f = new phpFlickr("<key>","<secret>",true);

$group_url = 'https://www.flickr.com/groups/1529467@N20';

// getting false
$result = $f->urls_lookupGroup($group_url);

var_dump($resultid);
var_dump($f->getErrorCode());
var_dump($f->getErrorMsg());
maan81 commented 7 years ago

I had to add

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);

as mentioned in https://github.com/dan-coulter/phpflickr/issues/48