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

From Calaméo Knowledge Base

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

<toc>

Request

Note: This feature is only available to PREMIUM and PLATINUM users. Click Here To Upgrade.
The API key must have the subscribers_read 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.
login yes string Login of the subscriber.
order string String of characters used to define the organization criteria of the publications (see Click Here To Upgrade)
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 Code Section.