not getting response for https://api.login.yahoo.com/oauth/v2/get_request_token

I am getting File not found error while trying to get the request token.

here is i followed:

created the API key, received Consumer key & Secret Key.

Using the keys generated the Request Token.

I tried all possible combinations for get_token ( as well tried get_request_token) all are giving FileNot found error.

I am just trying in IE & Mozilla.

i got the request token in IE.

Is there any limitations or preconditions to receive the authontication token.

here is my API:


10 Replies
  • I am exactly stuck on this step , i have got the part request token and here i get file not found , i am trying it in java application , here the response code is -1
    and when i check the input stream i get no values , what is the problem???
  • CODE
    Private Sub GetAuthData(SecretSig As String, AuthToken As String)
    HttpBuffer = ""
    MyNonCe = Int(Rnd * 65535) & Int(Rnd * 65535)
    Set YSocketLayer2 = New WinHttp.WinHttpRequest
    YSocketLayer2.Option(WinHttpRequestOption_EnableHttp1_1) = True
    YSocketLayer2.Option(WinHttpRequestOption_EnableRedirects) = False
    YSocketLayer2.Open "GET", "https://api.login.yahoo.com/oauth/v2/get_token?oauth_consumer_key=" & MyConsumerToken & "&oauth_signature_method=PLAINTEXT&oauth_signature=" & SecretSig & "%26&oauth_version=1.0&oauth_timestamp=0&oauth_nonce=" & MyNonCe & "&oauth_token=" & AuthToken, True
    YSocketLayer2.SetRequestHeader "User-Agent", "Mozilla/4.0"
    End Sub

    Hope this snippet helps
  • String url2 = "https://api.login.yahoo.com/oauth/v2/get_token?"+ "&oauth_consumer_key=dj0yJmk9WnhsVVZvSDhkYTVpJmQ9WVdrOWMwRlVZV0p2TkRnbWNHbzlNV

    URL getTokenUrlExec = new URL(url);
    HttpsURLConnection connectionGetToken = (HttpsURLConnection) getTokenUrlExec.openConnection();
    int responseCode = connectionGetToken.getResponseCode();

    i always get 401 Http response code ???where am i going wrong
  • Same here... stuck in this step

    Yahoo! api is such a mess.!!! ;\

    I admire the way LiveConnect (MSN Messenger) did it.
    So simple and easy.
  • I'm getting the same problem, anyone have made it work? Or is the API still up?

  • QUOTE(Xybrek @ 26 Apr 2012 5:46 PM)
    I'm getting the same problem, anyone have made it work? Or is the API still up?

    I'm able to connect, send message, and do contact management (invite, aprove, deny, delete) using Yahoo IM SDK, except for this problem:


    So I think API still work.

    Did you set your content-type to application/json; charset=utf-8 ?
    AFAIK, Yahoo server only support this content-type.
  • even i am stuck in the same place
  • https://api.login.yahoo.com/oauth/v2/get_request_token ????404!!!!!!!!!!!!!
  • I'm got the same problem but i change the project by:

    YAP Projects allow you to create Apps for the Yahoo! Application Platform, which appear to users on the Yahoo! Homepage and My Yahoo!.
    and it work

  • my email does not send messages


Recent Posts

in Messenger IM SDK