接口名称 |
评论一条内容
签名
|
地址 |
https://api.cnlive.com/open/api2/commentServices/commentForZSZ/insertComment |
method |
post |
返回数据 |
json
|
/* Title: 10.11 评论一条内容 Sort: 101 */
请求方式: POST
返回格式: JSON
请求参数说明:
参数 |
必选 |
类型 |
说明 |
appId |
true |
string |
应用ID即 |
topicId |
true |
string |
内容ID |
toSid |
true |
string |
内容发布者用户ID |
fromSid |
true |
string |
评论者用户ID |
comment |
true |
string |
评论内容 |
plat |
true |
string |
客户端平台[i:IOS客户端,a:Android客户端] |
sign |
true |
string |
签名 |
返回格式说明:
{
"errorCode": "0",
"errorMessage": "评论成功",
"data": {
"comment": {
"commentId": "4294",
"topicId": "12",
"uid": "10514228",
"nick": "马亚鑫",
"facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
"content": "冰雪世界哦哦哦",
"created_at": "2020-01-13 14:27",
"plat": "a"
}
}
}
{
"errorCode": "4",
"errorMessage": "该用户已被禁言"
}
{
"errorCode": "6",
"errorMessage": "评论内容不合规"
}
{
errorCode:"xxx", //错误代码(非0)
errorMsg:"失败" //错误信息
}