功能说明
查询帖子的评论列表
请求说明
请求鉴权:接口需要增加验证 Header,请查看 鉴权说明
请求类型:
GET
请求限频:
100次/秒
请求地址:https://请求域名/jim/posts/comments/list
Content-Type:
application/json
请求参数
参数 | 数据类型 | 是否必填 | 参数说明 | |
---|---|---|---|---|
post_id" | string | 是 | 帖子的id | |
start | int | 否 | 增量查询帖子的起始时间戳,毫秒(13位) | |
limit | int | 否 | 单页数量,默认20,最大不超过50 | |
order | int | 否 | 查询顺序,0:倒序;1:正序 |
请求示例
GET /jim/posts/comments/list?limit=20&start=1723456789123 HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
响应示例
{
"code":0,
"msg":"sucess",
"data":{
"items":[
{
"comment_id":"commentid1",
"post_id":"postid1",
"parent_comment_id":"xxx",
"parent_user_info":{
"user_id":"xxx",
"nickname":"xxxxx",
"avatar":"xxxx",
"user_type":0
},
"text":"xxxxxxxx",
"user_info":{
"user_id":"xxx",
"nickname":"xxxxx",
"avatar":"xxxx",
"user_type":0
},
"created_time":1732123456789,
"updated_time":1732123456789
}
],
"is_finished":true
}
}