Users‎ > ‎

bluemelon.users.getTree

retrieves the list of the user's categories and albums 

Authentication:

Yes (see here for details)

Arguments:

(optional) string : subview_t75 - the url of the cover item in 75x75 will be included in the response if this is set to "1"
(optional) string : subview_t100 - the url of the cover item in 100x100 will be included in the response if this is set to "1"
(optional) string : subview_t100u - the url of the uncropped cover item in 100x100 will be included in the response if this is set to "1"
(optional) string : subview_t150 - the url of the cover item in 150x150 will be included in the response if this is set to "1"
(optional) string : subview_t150u - the url of the uncropped cover item in 150x150 will be included in the response if this is set to "1"
(optional) string : subview_t400300 - the url of the cover item in 400x300 will be included in the response if this is set to "1"
(optional) string : subview_t600450 - the url of the cover item in 600x450 will be included in the response if this is set to "1"
(optional) string : subview_t800600 - the url of the cover item in 800x600 will be included in the response if this is set to "1"
(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.gettree&publickey={publickey}&token={token}

Response Example:

<rsp status="ok" onrequest="bluemelon.users.gettree">
<content>
<category id="335" parentid="0" title="AsddsA" url="asddsa" date="2009-04-09">
<album id="1472" title="RMI" url="rmi" date="2009-04-04" description="" accessmode="public" />
<album id="1473" title="Private" url="private" date="2009-04-04" description="" accessmode="private" />
</category>
<category id="336" parentid="0" title="New Category" url="newcategory" date="2009-04-09" />
<category id="340" parentid="0" title="xxx" url="xxx" date="2009-04-09" />
<album id="1485" title="Lili" url="lili" date="2009-04-05" description="" accessmode="public" />
<album id="1551" title="anewalbum" url="anewalbum" date="2009-04-09" description="" accessmode="public" />
<album id="1557" title="xxxxx" url="xxxxx" date="2009-04-10" description="" accessmode="public" />
</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