Skip to main content

addSubscriberDRMSerie

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

info

The API key must have access rights to subscribers_write.

Request​

NameTypeDescription
apikeyRequiredstringAPI public key
signatureRequiredstringSignature of the request.
expirestimestampUNIX timestamp for request expiration (GMT)
outputstringFormat of the response. Either XML (default), JSON or PHP
subscription_idRequiredintegerID of the folder
loginRequiredstringLogin of the subscriber
fromRequireddateStart date of the period (YYYY-MM-DD)
booksRequiredintegerNumber of publications from the start date
extrasstringFree field up to 255 characters

Response​

This method returns a series DRM.

NameTypeDescription
IDintegerID of the DRM
SubscriptionIDintegerID of the folder
SubscriberLoginstringLogin of the subscriber
FromdateStart date of the series (YYYY-MM-DD)
BooksintegerNumber of publications from the start date
ExtrasstringFree field up to 255 characters

Example response​

JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "ocrBAf",
"requests": 166,
"content": {
"ID": 4949,
"SubscriptionID": 4540112,
"SubscriberLogin": "leia",
"From": "2015-09-01",
"Books": 10,
"Date": "2015-10-16 11:31:05",
"Extras": ""
}
}
}