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
| Name | Type | Default | Description |
|---|---|---|---|
apikeyRequired | string | API public key | |
signatureRequired | string | Signature of the request. See how to sign your requests | |
expires | timestamp | UNIX timestamp for request expiration (GMT) | |
output | string | Format of the response. Either XML (default), JSON or PHP | |
subscription_idRequired | integer | ID of the folder | |
loginRequired | string | Login of the subscriber | |
fromRequired | date | Start date of the period (YYYY-MM-DD) | |
booksRequired | integer | Number of publications from the start date | |
extras | string | Free field up to 255 characters |
Response
This method returns a series DRM.
| Name | Type | Default | Description |
|---|---|---|---|
| ID | integer | ID of the DRM | |
| SubscriptionID | integer | ID of the folder | |
| SubscriberLogin | string | Login of the subscriber | |
| From | date | Start date of the series (YYYY-MM-DD) | |
| Books | integer | Number of publications from the start date | |
| Extras | string | Free 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": ""
}
}
}