I am using phpFlickr api to serach photos in flickr. I am using following code, but it is not working.
require_once($lib_dir."phpFlickr.php");
$flickr = new phpFlickr($cfg['flickr_api_key'],$cfg['flickr_secret']);
$photos = $flickr->photos_search(array('text'=>'BOOKS','content_type'=>1,/*'user_id'=>'me',*/'per_page'=>16,'page'=>1));
print_r($photos);
when i use echo $flickr->getErrorMsg()
i got error msg SSL is required
.
So how to solve it?
later edit:
once i change api to newer one..it is display boolean false
error message.
Thanks in advance.
This problem is solved. The api is changed which was I used. so i change few lines in api and it is worked.
i changed the http to https and problem is solved.
you can find more about here.