-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi
Thank you for maintaining this class... I am new to it but making progress everyday!
I successfully implement the oAuth to get an access token & secret based on the example provided (get_auth_token.php). I can get private photos, so it is working.
I need to delete media at Flickr. That returns an error : Unable to decode Flickr response to flickr.photos.delete request: oauth_problem=verifier_invalid. BTW, I had a similar error when trying to use getRecent. I am on Laravel.
Here is my code...
$accessToken = "xxx";
$accessTokenSecret = "xxx";
$token = new \OAuth\OAuth1\Token\StdOAuth1Token();
$token->setAccessToken($accessToken);
$token->setAccessTokenSecret($accessTokenSecret);
$storage = new \OAuth\Common\Storage\Memory();
$storage->storeAccessToken('Flickr', $token);
$phpFlickr = new \Samwilson\PhpFlickr\PhpFlickr(['flickrKey'],['flickrSecret']);
$phpFlickr->setOauthStorage($storage);
$result = $phpFlickr->photos()->delete($id);
Metadata
Metadata
Assignees
Labels
No labels