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

From Calaméo Knowledge Base

This action allows you to create an access to a fixed number of publications from a specific date.

<toc>

Request

Note: This feature is only available to PREMIUM and PLATINUM users. Click Here To Upgrade.
The API key must have the subscribers_write 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.
from yes date Start date of the period (YYYY-MM-DD).
books yes integer Number of publications from the start date.
extras string Free field of up to 255 characters

Response

Name Type Description
ID integer ID of the DRM.
SubscriptionID integer Signature of the request. See How To Sign Your Requests.
SubscriberLogin string UNIX timestamp for request expiration.
From date Start date of the serie (YYYY-MM-DD).
Books integer Number of publications from the start date.
Extras string Free field up to 255 characters.

Example responses

JSON

{
  response: {
    requestid: ...,
    requests: ...,
    status: ok,
    content: {
      ID: ...,
      SubscriptionID: ...,
      SubscriberLogin: ...,
      From: ...,
      Books: ...,
      Date: ...,
      Extras: ...
    }
  }
}

Error codes

See the Error Code Section.