0

Session Management

I try to make my own Yahoo Messenger...
I've read step by step of the yahoo messenger IM SDK...

I've succed to get request_toke, and oauth_token_secret
My problem is when I want to create session...
I dont know how to send this request using DELPHI 7 with TIdHTTP:
/----
POST /v1/session
Host: developer.messenger.yahooapis.com
Authorization: < Standard OAuth credentials >
Content-Type: application/json;charset=utf-8
Content-Length: 2
{
}
---/
i try to input it via IdHttp.CustomHeader, but always show this error msg: "HTTP/1.1 401 Authorization Required"

When I put the parameter via Tstringlist, then I execute them with tIdTHHP.post(URL,TstringList), it always show this error: "HTTP/1.1 501 OAuth Parameter Transmission Not Supported"

What is the meaning of "Standard OAuth credentials" above?

Anyone can help me, pleeaseeeee.....
[krishnamurti]

by
1 Reply
  • I have no idea about Delphi, anyhow check this tutorial http://nullinfo.wordpress.com/oauth-yahoo/ very informative and you can find the code here http://github.com/joechung/oauth_yahoo

    All the best.

    Karthik

    QUOTE (meskey @ Jul 21 2010, 09:03 PM) <{POST_SNAPBACK}>
    I try to make my own Yahoo Messenger...
    I've read step by step of the yahoo messenger IM SDK...

    I've succed to get request_toke, and oauth_token_secret
    My problem is when I want to create session...
    I dont know how to send this request using DELPHI 7 with TIdHTTP:
    /----
    POST /v1/session
    Host: developer.messenger.yahooapis.com
    Authorization: < Standard OAuth credentials >
    Content-Type: application/json;charset=utf-8
    Content-Length: 2
    {
    }
    ---/
    i try to input it via IdHttp.CustomHeader, but always show this error msg: "HTTP/1.1 401 Authorization Required"

    When I put the parameter via Tstringlist, then I execute them with tIdTHHP.post(URL,TstringList), it always show this error: "HTTP/1.1 501 OAuth Parameter Transmission Not Supported"

    What is the meaning of "Standard OAuth credentials" above?

    Anyone can help me, pleeaseeeee.....
    [krishnamurti]
    0

Recent Posts

in Messenger IM SDK