Authentication‎ > ‎

bluemelon.login.checkAccessToken

checks the validity of the token 

Authentication:

Yes (see here for details)

Arguments:

(required) string : token - the access token
(required) string : publickey - the public key of an application

Request Example:

http://www.bluemelon.com/api/rest/{api_sign}/
?method=bluemelon.login.checkaccesstoken&publickey={publickey}&token={token}

Response Example:

<rsp status="ok" onrequest="bluemelon.login.checkaccesstoken">
<LoginInfo>
<accesstoken token="77919E2CC9DB1E43C3E1CAFBF7D91D96"/>
</LoginInfo>
</rsp>

Error Codes:

4 - "Missing parameter"
5 - "Invalid parameter"
12 - "Application not found"
14 - "Invalid accessToken"
16 - "Access token timed out.You must relogin."
17 - "Invalid call signature size"
18 - "Invalid call signature"
20 - "Missing api_sign"
603 - "Account recently expired or deleted"

Comments