Method: user/getUploadFolders
This method return all user's upload folders
Authentication
This method requires authentication.
HTTP method
This method is called with HTTP method GET.
Arguments
| Argument | Type | Element (array) | Valid Values | Default Value | Detail | ||
|---|---|---|---|---|---|---|---|
offset |
Int | 0 | any integer value | ||||
limit |
Int | any integer between 1 and 100 | 50 |
Returned Values
| Element (path) | Name | Type | Description | ||
|---|---|---|---|---|---|
| /[n]/ | id |
string | folder ID | ||
| /[n]/ | url |
string | folder URL | ||
| /[n]/ | name |
string | folder name | ||
| /[n]/ | nb_files |
int | number of files in the folder |
Example Query
GET http://API_KEY@api.fotolia.com/Rest/1/user/getUploadFolders?offset=200&limit=75
Example Response
[
{
"id":"nC81B2kEy5jQk9mZIylUja0AsrEZC0Cq",
"url":"http:\/\/www.fotolia.fotolia.com\/Contributor\/MyContents\/Folder\/nC81B2kEy5jQk9mZIylUja0AsrEZC0Cq",
"name":"folder 1",
"nb_files":2
},
{
"id":"TXJ1Lw525PdoYI9Kc7jqHyYBZG4YzX5I",
"url":"http:\/\/www.fotolia.fotolia.com\/Contributor\/MyContents\/Folder\/TXJ1Lw525PdoYI9Kc7jqHyYBZG4YzX5I",
"name":"folder 2",
"nb_files":0
}
]
Error Codes
001: Service currently unavailable- The requested service is temporarily unavailable.
002: Failed to parse request- The request could not be parsed.
010: Missing API Key- The API key passed is missing.
011: Invalid API Key- The API key passed is not valid or has expired.
031: Invalid Method- This method does not exist in the method list.
032: Method not Available- This method is not available for this API Key.
2101: Invalid Thumbnail Size- The thumbnail size passed is not valid or doesn't exist in the fotolia available thumbnail size list.


