Albums‎ > ‎

bluemelon.albums.create

creates a new album in the specified category

Authentication:

Yes (see here for details)

Arguments:

(required) string : albumName - represents the name of the new album
(optional) int: categoryid - the id of the category in which the new album should be created
(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.albums.create&albumname=newalbum&publickey={publickey}&token={token}

Response Example:

<rsp status="ok" onrequest="bluemelon.albums.create"/>

Error Codes:

4 - "Missing parameter"
5 - "Invalid parameter"
12 - "Application not found"
14 - "Invalid accessToken"
15 - "Category not found"
16 - "Access token timed out.You must relogin."
17 - "Invalid call signature size"
18 - "Invalid call signature"
20 - "Missing api_sign"
30 - "Title length must be between 1 and 50"
600 - "No write permissions"
601 - "Mismatched parameter in your request"
603 - "Account recently expired or deleted"

Comments