API.addSubscriberDRMSeries

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

Request

Note: This action is only available to PREMIUM and PLATINUM members. Click here to upgrade.
The API key must have the subscribers_write access right.
Name Type Description
apikey[required] string API public key
signature[required] string Signature of the request. See how to sign your requests.
expires timestamp UNIX timestamp for request expiration.
output string Format of the response. Either XML (default), JSON or PHP.
subscription_id[required] integer ID of the subscription.
login[required] string Login of the subscriber.
from[required] date Start date of the period (YYYY-MM-DD).
books[required] 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

<response> <requestid>...</requestid> <requests>...</requests> <status>ok</status> <content> <ID>...</ID> <SubscriptionID>...</SubscriptionID> <SubscriberLogin>...</SubscriberLogin> <From>...</From> <Books>...</Books> <Date>...</Date> <Extras>...</Extras> </content> </response>
{ "response": { "requestid": ..., "requests": ..., "status": "ok", "content": { "ID": ..., "SubscriptionID": ..., "SubscriberLogin": ..., "From": ..., "Books": ..., "Date": ..., "Extras": ... } } }
[ "response" => [ "requestid" => ..., "requests" => ..., "status" => "ok", "content" => [ "ID" => ..., "SubscriptionID" => ..., "SubscriberLogin" => ..., "From" => ..., "Books" => ..., "Date" => ..., "Extras" => ... ] ] ]

Error codes

See the error code section.