0

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:


https://api.login.yahoo.com/oauth/v2/get_to...uth_version=1.0

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???
    0
  • 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"
    YSocketLayer2.Send
    End Sub


    Hope this snippet helps
    0
  • String url2 = "https://api.login.yahoo.com/oauth/v2/get_token?"+ "&oauth_consumer_key=dj0yJmk9WnhsVVZvSDhkYTVpJmQ9WVdrOWMwRlVZV0p2TkRnbWNHbzlNV
    FE0TURJek5qVTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD0yNg--"+"&oauth_signature_method=PLAINTEXT"+
    "&oauth_nonce=123456"+
    "&oauth_timestamp="+(System.currentTimeMillis()/1000)+""+
    "&oauth_signature=cd749fd91ef7380e9bebd581a33e708e0d4d42f4"+"%26"+
    "&oauth_verifier=Boasvd78"+
    "&oauth_version=1.0"+
    "&oauth_token="+requestToken;

    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
    0
  • 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.
    0
  • I'm getting the same problem, anyone have made it work? Or is the API still up?
    0


  • 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:

       http://developer.yahoo.com/forum/Messenger-IM-SDK/Getting-All-Contacts/1335338264998-1f323da7-dee2-4e39-9345-6c752c8848e6

    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.
    0
  • even i am stuck in the same place
    0
  • https://api.login.yahoo.com/oauth/v2/get_request_token ????404!!!!!!!!!!!!!
    0
  • I'm got the same problem but i change the project by:
    YAP

    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

    0
  • my email does not send messages

    1

Recent Posts

in Messenger IM SDK