Skip to main content

updateBook

This action allows you to update a publication's properties.

info

The API key must have access rights to publish.

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
book_idRequiredstringUnique publication ID
namestringTitle of the publication. If not present, the filename will be used
descriptionstringDescription of the publication. If not present, the first page's text will be used
datedateDate of the publication for DRM management (YYYY-MM-DD)
is_publishedbooleanActivation status. Either 0 (disabled) or 1 (enabled)
publishing_modeintegerAccess to the publication. Either 1 (public) or 2 (private)
publish_datedatetimeDate and time (UTC) of the publication scheduled publishing (YYYY-MM-DD HH:MM:SS).
private_urlbooleanUse a private URL. Either 0 (disabled) or 1 (enabled)
viewstringDefault viewing mode. Either book, slide, scroll
subscribeintegerAllow subscribers' access. Either 0 (disabled) or 1 (enabled)
commentintegerComments behavior. Either 0 (disabled), 1 (moderate all) or 4 (accept all)
downloadintegerDownload behavior. Either 0 (disabled) or 2 (everyone)
printintegerPrint behavior. Either 0 (disabled) or 2 (everyone)
shareintegerShare menu. Either 0 (disabled), 1 (enabled). Enabled by default
adultintegerRestrict access to adults. Either 0 (no) or 1 (yes)
directionintegerReading direction. Either 0 (left-to-right) or 1 (right-to-left)
licensestringLicense. Either <empty> (traditional copyright) or pd (public domain), by, by_nc, by_nc_nd, by_nc_sa, by_nd or by_sa (Creative Commons)
skin_urlstringCustom skin URL. Must be an absolute URL
logo_urlstringCustom logo URL. Must be an absolute URL
logo_link_urlstringCustom logo link URL. Must be an absolute URL
background_urlstringCustom background URL. Must be an absolute URL
musicintegerBackground music mode. Either 0 (loop forever), 1 (play only once)
music_urlstringCustom background music URL. Must be an absolute URL
sfxintegerPlay sound effects like page flipping. Either 0 (disabled) or 1 (enabled)
sfx_urlstringCustom page flipping sound URL. Must be an absolute URL

Response​

This method returns a Publication.

NameTypeDescription
IDstringID of the publication
AccountIDintegerPublication's owner account ID (should be your account ID)
SubscriptionIDintegerPublication's owner subscription ID
NamestringTitle of the publication
DescriptionstringDescription of the publication
StatusstringConversion status of the publication. Either QUEUE (waiting to be converted), PROCESS (processing document), STORE (converting document), ERROR (error during conversion) or DONE (publication ready)
IsPublishedintegerSends 1 if the publication is published and 0 if not
IsPrivateintegerSends 1 if the publication is private and 0 if not
AuthIDstringAuthentication parameter for private URLs (authid)
AllowMiniintegerSends 1 if the publication allows access to the miniCalaméo and 0 if not
PagesintegerNumber of pages of the publication
WidthintegerWidth of a page of the publication
HeightintegerHeight of a page of the publication
ViewsintegerNumber of views of the publication
DownloadsintegerNumber of downloads of the publication
CommentsintegerNumber of comments of the publication
FavoritesintegerNumber of favorites from the publication
DatedateReference date of the publication
CreationdatetimeDate of creation of the publication
PublicationdatetimeScheduled date of the publication (UTC)
ModificationdatetimeDate of the last modification of the publication
PosterUrlstringAbsolute URL for the publication's larger cover
PictureUrlstringAbsolute URL for the publication's cover
ThumbUrlstringAbsolute URL for the publication's thumbnail
PublicUrlstringAbsolute URL for the publication's overview
ViewUrlstringAbsolute URL for the publication's reading page

Example response​

JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "lACcQM",
"requests": 205,
"content": {
"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": 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,
"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": "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"
}
}
}