Users‎ > ‎

bluemelon.users.getStats

returns the user account information and statistics the same way as bluemelon.login.withHash but without the accessToken

Authentication:

Yes (see here for details)

Arguments:

(required) long : userid - the id of the user
(required) string : publickey - the public key of an application
(required) string : token - the access token

Request Example:

http://www.bluemelon.com/api/rest/{api_sign}/
?method=bluemelon.users.getstats&userid=1&publickey={publickey}&token={token}

Response Example:

<rsp status="ok" onrequest="bluemelon.users.getstats">
<content>
<userstats>
<account id="1" name="Free Account" filesizelimit="12582912" storagelimit="1073741824" />
<userstatistics itemsize="13766045" itemcount="25" />
</userstats>
</content>
</rsp>

Error Codes:

4 - "Missing parameter"
5 - "Invalid parameter"
9 - "User not found"
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