|
bluemelon.albums.setAccessMode
sets the access mode of the album
Authentication:
Yes (see here for details)
Arguments:
(required) long : albumid - the id of the album (required) string : accessmode - the access mode, any of ( "private", "public", "unlisted", "password" ) (required if accessmode = "password") string : password - the password to be requested on album access (required) string : publickey - publickey of an application (required) string : token - the access token
Request Example:
http://www.bluemelon.com/api/rest/{api_sign}/ ?method=bluemelon.albums.setaccessmode&albumid=1&accessmode=private&publickey={publickey}&token={token}
Response Example:
<rsp status="ok" onrequest="bluemelon.albums.setaccessmode" />
Error Codes:
4 - "Missing parameter" 5 - "Invalid parameter" 7 - "Album 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" 600 - "No write permissions" 602 - "No read permissions" 603 - "Account recently expired or deleted"
|