API.getBookInfos
This action allows you to recover the information about a publication using its unique code.
Request
The API key must have the commons 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 | ID of the publication. |
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>
<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.
