API.reviseFromUrl
This action allows you to publish a new revision of document from a file available on the internet.
Request
The API key must have the publish access right.
Note: Endpoint must be http://upload.calameo.com/1.0
| 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 | ID of the publication. |
| url[required] | string | URL of the document to publish. |
Response
Returns a publication.
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>
<Creation>...</Creation>
<Modification>...</Modification>
</content>
</response>
{
"response": {
"requestid": ...,
"requests": ...,
"status": "ok",
"content": {
"ID": ...,
"AccountID": ...,
"SubscriptionID": ...,
"Name": ...,
"Description": ...,
"Status": ...,
"IsPublished": ...,
"IsPrivate": ...,
"AuthID": ...,
"AllowMini": ...,
"Date": ...,
"Creation": ...,
"Modification": ...
}
}
}
[
"response" => [
"requestid" => ...,
"requests" => ...,
"status" => "ok",
"content" => [
"ID" => ...,
"AccountID" => ...,
"SubscriptionID" => ...,
"Name" => ...,
"Description" => ...,
"Status" => ...,
"IsPublished" => ...,
"IsPrivate" => ...,
"AuthID" => ...,
"AllowMini" => ...,
"Date" => ...,
"Creation" => ...,
"Modification" => ...
]
]
]
Error codes
See the error code section.
