接口名称 |
加载评论列表
web domain
|
地址 |
https://api.cnlive.com/open/api2/commentServices/commentForTopic/loadComments4H5 |
method |
post |
返回数据 |
json
|
/* Title: 10.3 加载评论列表 Sort: 103 */
请求方式: get
返回格式: JSON
请求参数说明:
参数 |
必选 |
类型 |
说明 |
appId |
true |
string |
应用ID |
topicId |
true |
string |
话题ID |
commentId |
true |
string |
评论ID(第一页传0) |
count |
true |
string |
每页显示条数 |
plat |
true |
string |
客户端平台[i:IOS客户端,a:Android客户端] |
sign |
true |
string |
签名 |
返回格式说明:
{
"errorCode": "0",
"errorMessage": "成功",
"data": {
"total_columns": "5",
"hasNext": "false",
"comments": [
{
"comment": {
"commentId": "22",
"topicId": "1111",
"uid": "10514228",
"nick": "mayaxin",
"facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
"content": "话题的第6条评论",
"created_at": "2019-12-24 09:58",
"plat": "a"
},
"replyData": {
"replyCount": "0"
}
},
{
"comment": {
"commentId": "18",
"topicId": "1111",
"uid": "10514228",
"nick": "mayaxin",
"facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
"content": "话题的第5条评论",
"created_at": "2019-12-24 09:24",
"plat": "a"
},
"replyData": {
"replys": [
{
"replyId": "21",
"commentId": "18",
"fromSid": "10514228",
"fromNick": "mayaxin",
"fromFace": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
"toSid": "145680",
"toNick": "国亚奇",
"toFace": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
"content": "回复第3条",
"created_at": "2019-12-24 09:26",
"plat": "a"
},
{
"replyId": "19",
"commentId": "18",
"fromSid": "145680",
"fromNick": "国亚奇",
"fromFace": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
"toSid": "10514228",
"toNick": "mayaxin",
"toFace": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
"content": "回复第1条",
"created_at": "2019-12-24 09:26",
"plat": "a"
}
],
"replyCount": "2"
}
},
{
"comment": {
"commentId": "17",
"topicId": "1111",
"uid": "145680",
"nick": "国亚奇",
"facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
"content": "话题的第4条评论",
"created_at": "2019-12-24 09:24",
"plat": "a"
},
"replyData": {
"replyCount": "0"
}
},
{
"comment": {
"commentId": "16",
"topicId": "1111",
"uid": "145680",
"nick": "国亚奇",
"facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
"content": "话题的第3条评论",
"created_at": "2019-12-24 09:24",
"plat": "a"
},
"replyData": {
"replyCount": "0"
}
},
{
"comment": {
"commentId": "15",
"topicId": "1111",
"uid": "10514228",
"nick": "mayaxin",
"facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
"content": "话题的第2条评论",
"created_at": "2019-12-24 09:24",
"plat": "a"
},
"replyData": {
"replyCount": "0"
}
}
]
}
}
{
errorCode:"xxx", //错误代码(非0)
errorMsg:"失败" //错误信息
}