V2 0/live show/add live show comment
来自技术开发小组内部wiki
功能说明
添加现场秀评论
URL
http://[域名]/v2_0/live_show/add_live_show_comment
返回格式
支持json,xml.通过format参数来控制
HTTP请求方式
POST.可以post的数据为xml或json.
输入参数说明
各个参数请进行URL 编码,编码时请遵守 RFC 1738 (1)公共参数 发送请求时必须传入公共参数,详见公共参数说明。 (2)私有参数
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
uid |
必须 |
int |
用户id |
to_uid |
可选 |
int | 回复谁的uid |
live_id |
必须 |
int |
现场秀id |
content | 必须 |
string |
评论内容 |
page_size |
可选 |
int |
显示评论条数:默认10 |
请求示例
正式环境 http://api.fumubang.com/v2_0/live_show/add_live_show_comment 测试环境 http://api.fumubang.net/v2_0/live_show/add_live_show_comment 本地环境 http://dev-api.fumubang.net/v2_0/live_show/add_live_show_comment
正确返回说明
{
"status": "success",//响应状态,添加评论成功
"live_show_comments": [ //评论
{
"id": "2153", //评论id
"live_id": "3191", //微信秀id
"uid": "33893", //用户id
"to_uid": "0", //回复用户id
"content": "不让写英文,真是奇葩了", //评论内容
"ctime": "2015-11-19 10:25:16", //添加评论时间
"username": "solo",//用户名
"face_image_small": "http://uc.fumubang.net/avatar.php?uid=33893&size=middle"//用户头像
},...
}
错误返回示例
参数不全:
{
"error_code": "300000",
"error_msg":"参数不全"
}
评论失败:
{
"error_code": "300001",
"error_msg":"抱歉,评论发表失败,请稍后重试。"
}