Skip to main content

fetchBookComments

This action allows you to fetch the comments of a publication.

info

The API key must have access rights to commons.

Request​

NameTypeDefaultDescription
apikeyRequired
stringAPI public key
signatureRequired
stringSignature of the request. See how to sign your requests
expires
timestampUNIX timestamp for request expiration (GMT)
output
stringFormat of the response. Either XML (default), JSON or PHP
book_idRequired
stringID of the publication
order
stringString of characters used to define the organization criteria of the comments. Only Date is available for now
way
stringString of characters used to define the sort order. Either UP (default) or DOWN
start
integerStart position of the range of comments. Default is 0
step
integerNumber of comments to be sent from the start position (max: 50)

Response​

This method returns an array of Comments.

NameTypeDefaultDescription
PosterIDintegerID of the comment poster
PosterNamestringName of the comment poster
PosterPublicUrlstringAbsolute URL for the comment poster's page
PosterThumbUrlstringAbsolute URL for the comment poster's thumbnail
DatedateDate of the comment
TextstringText of the comment

Example response​

JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "K2o07v",
"requests": 207,
"content": {
"total": 0,
"start": 0,
"step": 10,
"items": []
}
}
}