Closed anuj9196 closed 7 years ago
@anuj9196 It seems like your credentials are invalid. I just tested your sample with my creds and it works correctly.
I'd suggest checking your OAuth flow to ensure it is working properly. Or, if you're just looking for a static set of credentials for your user, you can login to the Tumblr API Console, grab your OAuth tokens from there, and plug them into this script.
Edit: Note that if a user has revoked your application, then you will also see an Unauthorized error.
I have saved user's
access_token
andtoken_secret
in database and using that to get user informationBut this is giving exceptional error as
Stack Tree is pointing
tumblr/tumblr/lib/Tumblr/API/Client.php