Skip to main content

fetchSubscriberDRMSingles

This action allows you to recover all the unit DRMs of a subscriber.

info

The API key must have access rights to subscribers_read.

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

Response​

This method returns an array of unit DRMs.

NameTypeDescription
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": "7LwQuB",
"requests": 200,
"content": {
"total": 1,
"items": [
{
"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": "en",
"Status": "DONE",
"IsPublished": 0,
"IsPrivate": 1,
"AuthID": "LTDf9GwGH9bl",
"AllowMini": 1,
"Date": "2015-10-16",
"Pages": 12,
"Width": 595,
"Height": 841,
"Views": 0,
"Downloads": 0,
"Comments": 0,
"Favorites": 0,
"PosterUrl": "https://i.calameoassets.com/151016113106-69d5960ce53f69b75910e802001e6adf/large.jpg",
"PictureUrl": "https://i.calameoassets.com/151016113106-69d5960ce53f69b75910e802001e6adf/thumb.jpg",
"ThumbUrl": "https://i.calameoassets.com/151016113106-69d5960ce53f69b75910e802001e6adf/p1.jpg",
"PublicUrl": null,
"ViewUrl": null,
"Creation": "2015-10-16 11:31:06",
"Modification": "2015-10-16 11:31:51"
},
"Date": "2015-10-16 11:31:51",
"Extras": ""
}
]
}
}
}