fetchAccountSubscriptions
This action allows you to recover all or part of the Folders belonging to your Account.
info
The API key must have access rights to commons.
Request
| Name | Type | Default | Description |
|---|---|---|---|
apikeyRequired | string | API public key | |
signatureRequired | string | Signature of the request. See how to sign your requests | |
expires | timestamp | UNIX timestamp for request expiration (GMT) | |
output | string | Format of the response. Either XML (default), JSON or PHP | |
order | string | String of characters used to define the organization criteria of the folders. See how to sort folders | |
way | string | String of characters used to define the sort order. Either UP (default) or DOWN | |
start | integer | Start position of the range of folders. Default is 0 | |
step | integer | Number of folders to be sent from the start position (max: 50) |
Response
This method returns an array of Folders.
| Name | Type | Default | Description |
|---|---|---|---|
| ID | integer | Unique identifying key for the folder | |
| AccountID | integer | Unique identifying key for the account of the folder | |
| Name | string | Title of the folder | |
| Description | string | Description of the folder | |
| Books | integer | Available publications inside the folder | |
| Subscribers | integer | Available subscribers inside the folder (only returned for your account's folder) | |
| Creation | datetime | Date of the folder's creation | |
| Modification | datetime | Date of the folder's last modification | |
| PublicUrl | string | Absolute URL for the folder's overview |
Example response
JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "EGNNi2",
"requests": 162,
"content": {
"total": 1,
"start": 0,
"step": 10,
"items": [
{
"ID": 4540112,
"AccountID": 4516825,
"Name": "Mon dossier",
"Description": "",
"Books": 0,
"Subscribers": 0,
"Creation": "2015-10-06 16:55:39",
"Modification": "2015-10-06 16:55:39",
"PublicUrl": "https://www.calameo.com/subscriptions/4540112"
}
]
}
}
}