|
PDF Print E-mail

File Download

retrieves an item (photo) with the specified id in the specified album or collection

Authentication:

Yes (see here for details)

Arguments:

(required) long : itemid - the id of the item
(required if collectionid = null) int : albumid - the id of the album album that contains the item to be downloaded
(required if albumid = null) int : collectionid - the id of the collection that contains the item to be downloaded
(required) long: folderid - the id of the album
(optional) string : subviewext - subview is the thumbnail-code
(required) string : publickey - the public key of an application
(required) string : token - the access token

Request Example:

http://www.bluemelon.com/api/download/{api_sign}/
?itemid=1&albumid=1&publickey={publickey}&token={token}

Response Example:

strawberry

Error Codes:

4 - "Missing parameter" ( in this case publickey )
5 - "Invalid parameter" ( in this case publickey )
14 - "Inavlid accessToken"
16 - "Access token timed out"
18 - "Invalid api_sign"
38 - "Missing albumid or collectionid"