|
bluemelon.users.get
retrieves the user's details
Authentication:
Yes (see here for details)
Arguments:
(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.get&publickey={publickey}&token={token}
Response Example:
<rsp status="ok" onrequest="bluemelon.users.get"> <content> <user> <id>111</id> <login>mirax</login> <firstName /> <lastName /> <gender>M</gender> <bio /> <email>
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
</email> <date class="sql-date">2008-11-21</date> <account id="1" name="Free Account" filesizelimit="12582912" storagelimit="1073741824" /> <userStatistics itemsize="13766045" itemcount="25" /> </user> </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"
|