0

Problem accessing https://api.login.yahoo.com to get access token

Hi,

Im able to get the Pre Approved Request Token (PART) by sending the username,password and my OAuth consumer key in a POST request to https://login.yahoo.com/WSLogin/V1/get_auth_token .
But,im unable to get the Exchange part for OAuth credentials API to work and get the access token. I sent the parameters,specified on http://developer.yahoo.com/messenger/guide...entials.html,in a GET request to https://api.login.yahoo.com/oauth/v2/get_token , but i always get the message "https://api.login.yahoo.com is not available". I even tried making a POST request.
What could be going wrong ?

Please help
Thank You.

by
4 Replies
  • Pls post some code.

    QUOTE (Priyank @ Jul 23 2010, 03:16 PM) <{POST_SNAPBACK}>
    Hi,

    Im able to get the Pre Approved Request Token (PART) by sending the username,password and my OAuth consumer key in a POST request to https://login.yahoo.com/WSLogin/V1/get_auth_token .
    But,im unable to get the Exchange part for OAuth credentials API to work and get the access token. I sent the parameters,specified on http://developer.yahoo.com/messenger/guide...entials.html,in a GET request to https://api.login.yahoo.com/oauth/v2/get_token , but i always get the message "https://api.login.yahoo.com is not available". I even tried making a POST request.
    What could be going wrong ?

    Please help
    Thank You.
    0
  • I've got the same question about sending messages.
    The documentation shows the code below as the way to do it but how do you turn that into a url or actual code?


    1.POST /v1/message/yahoo/targetYahooId?sid=msgrsessionid
    2.Host: rcore1.messenger.yahooapis.com
    3.Authorization: < Standard OAuth credentials >
    4.Content-Type: application/json;charset=utf-8
    5.Content-Length: 25
    6.{
    7. "message" : "Hey there"
    8.}
    0
  • Tim

    The code below is http request. There are 2 part of it: header and body. You can get header information from this link http://en.wikipedia.org/wiki/List_of_HTTP_header_fields

    Let me explain a little bit about the code below:
    Line 1 - 5 are headers
    Line 6 - 8 are body.

    - This is a http request with using POST method.
    - Add Authorization field in the header
    - Change Content-Type header into: application/json;charset=utf-8
    - For post data, fill it with line 6 - 8
    - Send your request to http://rcore1.messenger.yahooapis.com/v1/m...d=msgrsessionid

    Done, you will receive the result from yahoo server.

    Thx
    ~jimmi

    QUOTE (Tim @ Aug 26 2010, 04:28 AM) <{POST_SNAPBACK}>
    I've got the same question about sending messages.
    The documentation shows the code below as the way to do it but how do you turn that into a url or actual code?


    1.POST /v1/message/yahoo/targetYahooId?sid=msgrsessionid
    2.Host: rcore1.messenger.yahooapis.com
    3.Authorization: < Standard OAuth credentials >
    4.Content-Type: application/json;charset=utf-8
    5.Content-Length: 25
    6.{
    7. "message" : "Hey there"
    8.}
    0
  • You must got result from that url. Just open https://api.login.yahoo.com/oauth/v2/get_token from your browser, and view that page source.
    You will see some error message like this:
    oauth_problem=parameter_absent&oauth_parameters_absent=oauth_consumer_key,oauth_token,oauth_signature_metho
    d,oauth_signature,oauth_timestamp,oauth_nonce

    Thx
    ~jimmi
    0

Recent Posts

in Messenger IM SDK