0

Getting 401 Authorization Required error while calling https://api.login.yahoo.com/oauth/v2/get_request_token to get the request token

Hi, I have searched through all possible ways on the internet but I am unable to get through this error which I get while requesting the request token.

The complete url which I am calling is as below: https://api.login.yahoo.com/oauth/v2/get_request_token?oauth_nonce=CHALCQ&oauth_timestamp=1399269898&oauth_consumer_key=dj0yJmk9YmdCRGFGOUlLanJyJmQ9WVdrOVlXUk1ibU5xTm5FbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD0wNQ--&oauth_signature_method=plaintext&oauth_signature=58eafd2f57d4b9e9ee69e495133acef2fdc58d42%26&oauth_version=1.0&oauth_callback=http%3A%2F%2Flocal.etgame.indiatimes.com

The problem is that the yahoo response does not clearly specify what is wrong in my call. If I somehow know if any of the parameter that I am sending is wrong or there is some specific issue, then I am work to debug that issue. Any help would be appreciated.

by
2 Replies
  • Thanks. The issue is resolved now. The app which I had registered on yahoo was not enabled for reading contacts. Thus, I was not receiving response. I am able to get the proper response now by properly registering new app.

    But, yahoo should improve its error response, making it more informative, so that the developer can easily know what is specifically wrong in his/her api call.

    1
  • Hi all, i have the problem to access the contacts in social.yahooapis.com. I am able to get the access token and yahoo guid, but not the contacts. My request call to http or https://social.yahooapis.com/v1/user/{myguid}/contacts return errors. When i Try "https", return to me an error 401, and when i try "http" an error 404. I am following the documentation in https://developer.yahoo.com/oauth/guide/oauth-make-request.html. I am developing in c#, and following the http://oauth.googlecode.com/svn/code/csharp/OAuthBase.cs. can you help me?

    0

Recent Posts

in Contacts