Skip to main content

addSubscriberDRMSingle

This action lets you allow a subscriber to access a specific publication.

info

The API key must have access rights to subscribers_write.

Request​

NameTypeDefaultDescription
apikeyRequired
stringAPI public key
signatureRequired
stringSignature of the request. See how to sign your requests
expires
timestampUNIX timestamp for request expiration (GMT)
output
stringFormat of the response. Either XML (default), JSON or PHP
subscription_idRequired
integerID of the folder
loginRequired
stringLogin of the subscriber
book_idRequired
stringUnique ID of the publication. Publication must be private with subscriber access authorized
extras
stringFree field up to 255 characters

Response​

This method returns a unit DRM.

NameTypeDefaultDescription
IDintegerID of the DRM
SubscriptionIDintegerID of the folder
SubscriberLoginstringLogin of the subscriber
BookpublicationPublication
ExtrasstringFree field up to 255 characters

Example response​

JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "KE5qpk",
"requests": 198,
"content": {
"ID": 477963,
"SubscriptionID": 4540112,
"SubscriberLogin": "leia",
"Book": {
"ID": "0045168254f0132f6cf5f",
"SubscriptionID": 4540112,
"AccountID": 4516825,
"Name": "Guided Tour EN",
"Description": "www.calameo.com CALAMÉO GUIDED TOUR ENGLISH",
"Category": "MISC",
"Format": "MISC",
"Dialect": "unknown",
"Status": "DONE",
"IsPublished": 1,
"IsPrivate": 1,
"AuthID": "LTDf9GwGH9bl",
"AllowMini": 1,
"Date": "2015-10-16",
"Pages": 12,
"Width": 595,
"Height": 841,
"Views": 0,
"Downloads": 0,
"Comments": 0,
"Favorites": 0,
"PictureUrl": "//i.calameoassets.com/151016113106-69d5960ce53f69b75910e802001e6adf/thumb.jpg",
"ThumbUrl": "//i.calameoassets.com/151016113106-69d5960ce53f69b75910e802001e6adf/p1.jpg",
"PublicUrl": "https://www.calameo.com/books/0045168254f0132f6cf5f?authid=LTDf9GwGH9bl",
"ViewUrl": "https://www.calameo.com/read/0045168254f0132f6cf5f?authid=LTDf9GwGH9bl",
"Creation": "2015-10-16 11:31:06",
"Modification": "2015-10-16 11:31:51"
},
"Date": "2015-10-16 11:31:51",
"Extras": ""
}
}
}