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​

NameTypeDescription
apikeyRequiredstringAPI public key
signatureRequiredstringSignature of the request.
expirestimestampUNIX timestamp for request expiration (GMT)
outputstringFormat of the response. Either XML (default), JSON or PHP
book_idRequiredstringID of the publication
orderstringString of characters used to define the organization criteria of the comments. Only Date is available for now
waystringString of characters used to define the sort order. Either UP (default) or DOWN
startintegerStart position of the range of comments. Default is 0
stepintegerNumber of comments to be sent from the start position (max: 50)

Response​

This method returns an array of Comments.

NameTypeDescription
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": []
}
}
}