版本:202201
查询评论列表
GET/openapi/2022-01/comments/list
分页返回评论列表。
请求
Query参数
product_id string
商品 ID。
created_at_min string
创建开始时间。
created_at_max string
创建结束时间。
updated_at_min string
更新开始时间。
updated_at_max string
更新结束时间。
sort_by string
排序字段。
sort_direction string
排序顺序,asc 或者 desc。
page int32
Page number
limit int32
Limit per page, 10, 20, 50, 100 allowed
status string
状态,1:发布 0:未发布。
响应
- 200
- 400
200
- application/json
- 数据结构
- 示例
- Result
数据结构
- Array [
- ]
comments object[]
idstring
示例:
23532434store_idstring
示例:
633130usernamestring
示例:
Joeyemailstring
示例:
starstring
示例:
5.0likestring
示例:
10contentstring
示例:
Cheap but beautifulimgstring
示例:
["0048955f731656d0e7fc8b5e03509ed7.webp?width=650&height=433"]statusstring
示例:
1typestring
示例:
1product_idstring
示例:
a1a88be0-a1d4-47e4-a2f2-ba6e131cf447created_atstring
示例:
2024-04-24 14:02:39updated_atstring
示例:
2024-04-25 08:22:59countrystring
示例:
CNis_featuredstring
示例:
0is_verifiedstring
示例:
0client_id
anonymousstring
示例:
0totalstring
示例:
6pagestring
示例:
1{
"comments": [
{
"id": "23532434",
"store_id": "633130",
"username": "Joey",
"email": "",
"star": "5.0",
"like": "10",
"content": "Cheap but beautiful",
"img": "[\"0048955f731656d0e7fc8b5e03509ed7.webp?width=650&height=433\"]",
"status": "1",
"type": "1",
"product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
"created_at": "2024-04-24 14:02:39",
"updated_at": "2024-04-25 08:22:59",
"country": "CN",
"is_featured": "0",
"is_verified": "0",
"client_id": {},
"anonymous": "0"
}
],
"total": "6",
"page": "1"
}
{
"comments": [
{
"id": "23532434",
"store_id": "633130",
"username": "Joey",
"email": "",
"star": "5.0",
"like": "10",
"content": "Cheap but beautiful",
"img": "[\"0048955f731656d0e7fc8b5e03509ed7.webp?width=650&height=433\"]",
"status": "1",
"type": "1",
"product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
"created_at": "2024-04-24 14:02:39",
"updated_at": "2024-04-25 08:22:59",
"country": "CN",
"is_featured": "0",
"is_verified": "0",
"client_id": null,
"anonymous": "0"
}
],
"total": "6",
"page": "1"
}
400
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"params is invalid"
]
}
{
"errors": [
"params is invalid"
]
}