描述

获取直播历史聊天记录

接口地址

http://e.vhall.com/api/vhallapi/v2/chat/history

请求参数

参数名 类型 必选 说明
webinar_id int 直播ID
start_time time 形如2016-11-30 10:16:43,只获取在该时间后的
end_time time 形如2016-11-30 10:16:43,只获取在该时间前的
pos int 获取条目节点 eg : 10 从第10条开始查询
limit int 返回条数 数字,最大200

接口中必须包含公共请求参数。关于公共请求参数详细内容,请参考 公共请求参数

响应参数

返回形如''{"code":200,"msg":"success","data":{'list':[{'webinar_id':123,'name':'nelson'}]},'total':1}''的json。data部分数据如下:

参数名 类型 必选 说明
{"lists":,"total":"10"} json 获取成功,返回列表数据(JSON格式)

list数据

参数名 类型 必选 说明
webinar_id int 直播ID
third_user_id string 第三方用户id,与第三方创建用户接口中传入的值一致
name string 用户昵称
email string 用户邮箱
text string 对话内容
create_time string 对话时间形式如2013-10-01 10:10:10

响应示例

{
    "code": 200,
    "msg": "success",
    "data": {
    	'lists': [
	        {
            	'webinar_id' : 654067993,
                'third_user_id':'12345678'
                'name' : 'v461',
                'email': 'gaoyansing@sina.com',
                'text': 'hello world',
                'create_time' : '2015-11-12 16:05:27'
			},
	        {
            	'webinar_id' : 654067993,
                'name' : 'v461',
                'email': 'gaoyansing@sina.com',
                'text': 'hello every one',
                'create_time' : '2015-11-12 16:05:29'
			},
		    ],
        'total':2
	}
}

错误码

code 含义
10017 直播id为空
10010 直播不存在
10011 不是自己的直播