Users‎ > ‎

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:

<?xml version='1.0'?> 
<rsp status="ok" onrequest="bluemelon.users.get" total="1" first="0" batch="1">
  <content>
    <user>
      <id>1</id>
      <login>user</login>
      <nickname>nickname</nickname>
      <firstname>f name</firstname>
      <lastname>l name</lastname>
      <gender>M</gender>
      <email>
 email@domain.com </email>
      <date>2011-02-28</date>
<bio>&lt;p&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;p&gt;a &lt;strong&gt;bold&lt;/strong&gt;description!&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;</bio>
<url>http://www.bluemelon.com/user/</url> <account id="5" name="Enterprise Account" filesizelimit="25165824" storagelimit="0"/> <userstatistics itemsize="30629992" itemcount="33"/> </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"

Comments