| 接口名称 |
评论
签名
|
| 地址 |
https://api.cnlive.com/open/api2/commentServices/commentForUgc/insertComment |
| method |
post |
| 返回数据 |
json
|
/* Title: 10.8 评论一条内容 Sort: 101 */
请求方式: POST
返回格式: JSON
请求参数说明:
| 参数 |
必选 |
类型 |
说明 |
| appId |
true |
string |
应用ID即 |
| topicId |
true |
string |
内容ID |
| sid |
true |
string |
用户ID |
| comment |
true |
string |
评论内容 |
| plat |
true |
string |
客户端平台[i:IOS客户端,a:Android客户端] |
| isAuthor |
true |
string |
是否是作者 true:是 false:否 |
| sign |
true |
string |
签名 |
返回格式说明:
{
"errorCode": "0",
"errorMessage": "评论成功"
}
{
"errorCode": "4",
"errorMessage": "该用户已被禁言"
}
{
"errorCode": "51002",
"errorMessage": "该话题已被屏蔽或删除"
}
{
"errorCode": "5",
"errorMessage": "评论内容审核异常"
}
{
"errorCode": "6",
"errorMessage": "评论内容不合规"
}
{
errorCode:"xxx", //错误代码(非0)
errorMsg:"失败" //错误信息
}