Search code examples
phpauthenticationflickr

Accessing Flickr API in CLI


I am using phpfickr and need to run it in CLI.

But when executing $ php getToken.php, but I'm not being able to getting authenticated. I have the $app_id and $secret.

Please, I am new to this and haven't found a correct solution.


Solution

  • Based on issue https://github.com/dan-coulter/phpflickr/issues/48 , adding

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

    got me going.

    This issue appears to be merged into master branch, but it does not exist.