API.fetchSubscriptionBooks - 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.fetchSubscriptionBooks

From Calaméo Knowledge Base

This action allows you to fetch a subscription's publications.

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.
subscription_id yes integer ID of the subscription.
order string String of characters used to define the organization criteria of the publications (see sorting)
way string String of characters used to define the sort order. Either UP (default) or DOWN.
start integer Start position of the range of publications. Default is 0.
step integer Number of publications to be sent from the start position (max: 50).

Response

This method returns an array of Publications.

Example responses

JSON

{
  response: {
    requestid: ...,
    requests: ...,
    status: ok,
    content: {
      total: ...,
      start: ...,
      step: ...,
      items: [
         {
            ID: ...,
            AccountID: ...,
            SubscriptionID: ...,
            Name: ...,
            Description: ...,
            Status: ...,
            IsPublished: ...,
            IsPrivate: ...,
            AuthID: ...,
            AllowMini: ...,
            Date: ...,
            Pages: ...,
            Width: ...,
            Height: ...,
            Views: ...,
            Downloads: ...,
            Comments: ...,
            Favorites: ...,
            Creation: ...,
            Modification: ...,
            PictureUrl: ...
            ThumbUrl: ...
            PublicUrl: ...
            ViewUrl: ...
         }
      ]
    }
  }
}

Error codes

See the Error Codes.