fetchBookTocs
This action allows you to fetch the table of contents of a publication.
info
The API key must have access rights to commons.
Request
| Name | Type | Default | Description |
|---|---|---|---|
apikeyRequired | string | API public key | |
signatureRequired | string | Signature of the request. See how to sign your requests | |
expires | timestamp | UNIX timestamp for request expiration (GMT) | |
output | string | Format of the response. Either XML (default), JSON or PHP | |
book_idRequired | string | ID of the publication |
Response
This method returns an array of table of contents entries.
| Name | Type | Default | Description |
|---|---|---|---|
| Level | integer | Hierarchy level of the item. From 1 to the highest | |
| Name | string | Label of the item | |
| PageNumber | integer | Page number linked to the item |
Example response
JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "tARK2K",
"requests": 206,
"content": {
"total": 0,
"items": []
}
}
}