`Required session does not exist` error while using REST api of Quickblox -


i using rest api of quickblox. everytime , getting response :

{"errors": {   "base": ["required session not exist"] }} 

and using below api : url : http://api.quickblox.com/users.json

data & header :

curl -x post \ -h "content-type: application/json" \ -h "quickblox-rest-api-version: 0.1.0" \ -h "qb-token: cf5709d6013fdb7a6787fbeb8340afed8aec4c69" \ -d '{"user": {"login": "xyz", "password": "xyz@123", "email": "xyz@domain.com", "external_user_id": "68764641", "facebook_id": "87964654", "twitter_id": "132132", "full_name": "test 1234", "phone": "87654351", "website": "", "tag_list": ""}}' \ 

can me resolve error?

when connects app using quickblox, app has obtain access token provides temporary, secure access quickblox apis.

a session token opaque string identifies user , app.

session tokens obtained via create session request.

then, because of privacy checks, rest api requests must authenticated token - qb-token header of each request rest api must contain valid session token.

expiration time session token 2 hours after last request rest api. aware it. if perform query expired token - receive error 'required session not exist'. in case have recreate session token.

each rest api response contains header 'qb-token-expirationdate' contains session token expiration date.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -