Skip to content

Data api comments listbyentries

Yuji Takayama edited this page Jul 10, 2013 · 1 revision

Comments: listByEntries

Retrieve a list of categories for an entry.

Authorization is required if want to include unpublished comments.

Request

HTTP Request

This method accepts GET only.

GET https://your-host/your-mt-api.cgi/v1/sites/{blog_id}/entries/{entry_id}/comments

Parameters

Method Parameters

Parameter Type Description
blog_id unsigned integer The blog ID.
entry_id unsigned integer The entry ID.

Query Parameters

Parameter Type Description
limit unsigned integer This is an optional parameter. Maximum number of comments to retrieve. Default is 10.
offset unsigned integer This is an optional parameter. 0-indexed offset. Default is 0.

Request Body

Do not supply a request body.

Response

Parameter Type Description
totalResults unsigned integer The total number of comments found.
items ARRAY An array of Comments resource. The list will sorted from oldest to newest by comment_id and comment_parent_id.

Status Code

Code Description
200 no error
403 Do not have permission to retrieve the list of comments.
404 Entry (or site) not found
Clone this wiki locally