Proxima User details after loging issue.
Proxima
Hello! I am developing an Android app targeting Jamroom Framework, so I am using Proxima Module to interface with server side.
I am traying to read user accounta data to verify if user still have a valid user session. I can login with no problem, I can get the user session_id to store in app preferences. But test fails when I try to use session_id to get user account, keep getting the next response:
{
"code": 401
"text": "Unauthorized"
"note": "invalid user session"
}
I am using the header Authorisation = "Basic " + Base64.encodeToString("client_key:session_id");
and the url, as logged in user id is 1, like this:
GET
http://my.jamroom.site.com/api/user/1.
Is this a normal behavior of Proxima module?
If I change user id to 2, I get this response from server:
{
"code": 401
"text": "Unauthorized"
"note": "invalid item owner (0)"
}
Which is correct, as that way I'll be trying to reach someone else's account info.
If I change user id to 0 (zero), I get this:
{
"code": 400
"text": "Bad Request"
"note": "invalid user id"
}
Which is also correct, once there is no user id 0.
Is there a way to debug this? Or Am I doing something wrong?
Thanks for your time and attention.
updated by @amartins: 06/10/16 06:41:25AM