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?
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]
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?