addSubscriberDRMPeriod
This action allows you to create an access to publications within a period of time.
info
The API key must have access rights to subscribers_write.
Request
Response
This method returns a period DRM.
| Name | Type | 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 period (YYYY-MM-DD) |
| To | date | End date of the period (YYYY-MM-DD) |
| Extras | string | Free field up to 255 characters |
Example response
JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "Oui7af",
"requests": 168,
"content": {
"ID": 77859,
"SubscriptionID": 4540112,
"SubscriberLogin": "leia",
"From": "2015-09-01",
"To": "2016-09-01",
"Date": "2015-10-16 11:31:05",
"Extras": ""
}
}
}