-
Notifications
You must be signed in to change notification settings - Fork 9
Data api comments listbyentries
Yuji Takayama edited this page Jul 10, 2013
·
1 revision
Retrieve a list of categories for an entry.
Authorization is required if want to include unpublished comments.
This method accepts GET only.
GET https://your-host/your-mt-api.cgi/v1/sites/{blog_id}/entries/{entry_id}/comments
Parameter | Type | Description |
---|---|---|
blog_id | unsigned integer | The blog ID. |
entry_id | unsigned integer | The entry ID. |
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. |
Do not supply a request body.
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. |
Code | Description |
---|---|
200 | no error |
403 | Do not have permission to retrieve the list of comments. |
404 | Entry (or site) not found |