About plurk api connection.

Hello all,

I have no idea why socket.http request those plurk api only login and logout methods success.
Otherwise, other requests always get {“error_text”: “Requires login”} result.
Could anyone can tell me how this to work?
Or did I miss understanding about socket.http behaviors?

Thanks a lot,

Erin [import]uid: 5377 topic_id: 1887 reply_id: 301887[/import]

Can you post the code you’re working with so we can help debug it? I probably just need to include a session key along with future requests once you’ve logged in. [import]uid: 3 topic_id: 1887 reply_id: 5569[/import]

@seanh, thanks for reply.

I just use socket.http as below,

local string = “username=”…username…"&password="…password…"&api_key="…api_key
local result = http.request( "https://www.plurk.com/API/Users/login?"… string )
login works well.

but other requests:
Ex:getOwnProfile or /API/Polling/getUnreadCount
local string = “api_key=”…api_key
local result = http.request( "http://www.plurk.com/API/Profile/getOwnProfile?"… string )
all failed…

But at the end of test code I put logout method:
local string = “api_key=”…api_key
local result = http.request( "http://www.plurk.com/API/Users/logout?"… string )
Logout works fine…

How to include a session key while using socket.http.request?

Thanks again =)

Erin
[import]uid: 5377 topic_id: 1887 reply_id: 5609[/import]