API.fetchAccountSubscriptions - Calaméo Knowledge Base
Not a Calaméo member yet?
Sign up now! It's FREE!
Get the latest news on Calaméo
Follow us on Facebook
Get Calaméo updates in real-time
Follow us on Twitter

API.fetchAccountSubscriptions

From Calaméo Knowledge Base

This action allows you to recover all or part of the subscriptions of your account.

Contents

Request

The API key must have the commons access right.
Name Required Type Description
apikey yes string API public key
signature yes string Signature of the request. See How To Sign Your Requests.
expires yes 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 subscriptions (see How To Sign Your Requests)
way string String of characters used to define the sort order. Either UP (default) or DOWN.
start integer Start position of the range of subscriptions. Default is 0.
step integer Number of subscriptions to be sent from the start position (max: 50).

Response

This request sends an array of Subscriptions.

Example responses

JSON

{
  response: {
    requestid: ...,
    requests: ...,
    status: ok,
    content: {
      total: ...,
      start: ...,
      step: ...,
      items: [
         {
            ID: ...,
            AccountID: ...,
            Name: ...,
            Description: ...,
            Books: ...,
            Subscribers: ...,
            Creation: ...,
            Modification: ...,
            PublicUrl: ...
         }
      ]
    }
  }
}

Error codes

See the Error Code Section.