API.renewBookPrivateUrl

This action allows you to renew a publication's private URL using its unique code.

Request

The API key must have the publish 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.
book_id[required] string Unique identifying key of the publication.

Response

Return a publication with the new private URL.

Example responses

<response> <requestid>...</requestid> <requests>...</requests> <status>ok</status> <content> <ID>...</ID> <AccountID>...</AccountID> <SubscriptionID>...</SubscriptionID> <Name>...</Name> <Description>...</Description> <Status>...</Status> <IsPublished>...</IsPublished> <IsPrivate>...</IsPrivate> <AuthID>...</AuthID> <AllowMini>...</AllowMini> <Date>...</Date> <Pages>...</Pages> <Width>...</Width> <Height>...</Height> <Views>...</Views> <Downloads>...</Downloads> <Comments>...</Comments> <Favorites>...</Favorites> <Creation>...</Creation> <Modification>...</Modification> <PictureUrl>...</PictureUrl> <ThumbUrl>...</ThumbUrl> <PublicUrl>...</PublicUrl> <ViewUrl>...</ViewUrl> </content> </response>
{ "response": { "requestid": ..., "requests": ..., "status": "ok", "content": { "ID": ..., "AccountID": ..., "SubscriptionID": ..., "Name": ..., "Description": ..., "Status": ..., "IsPublished": ..., "IsPrivate": ..., "AuthID": ..., "AllowMini": ..., "Date": ..., "Pages": ..., "Width": ..., "Height": ..., "Views": ..., "Downloads": ..., "Comments": ..., "Favorites": ..., "Creation": ..., "Modification": ..., "PictureUrl": ... "ThumbUrl": ... "PublicUrl": ... "ViewUrl": ... } } }
[ "response" => [ "requestid" => ..., "requests" => ..., "status" => "ok", "content" => [ "ID" => ..., "AccountID" => ..., "SubscriptionID" => ..., "Name" => ..., "Description" => ..., "Status" => ..., "IsPublished" => ..., "IsPrivate" => ..., "AuthID" => ..., "AllowMini" => ..., "Date" => ..., "Pages" => ..., "Width" => ..., "Height" => ..., "Views" => ..., "Downloads" => ..., "Comments" => ..., "Favorites" => ..., "Creation" => ..., "Modification" => ..., "PictureUrl" => ... "ThumbUrl" => ... "PublicUrl" => ... "ViewUrl" => ... ] ] ]

Error codes

See the error code section.