描述

以列表的形式获取某个课程ID下的所有回放内容;包括回放名称、创建时间、回放时长、回放ID、预览地址 等内容。

接口地址

公共参数

http://api-class.e.vhall.com/api/class/record/webinar-record-preview-list

请求参数

公共参数需要每次请求都附带上,详细内容请参考公共参数

参数名 类型 必选 说明
curr_page int 当前页数(默认第1页)
pagesize int 每页显示条数(默认5条)
class_id string 课程ID
role_type string 角色类型 1:讲师;2:学员;3:助教;4:嘉宾;5:督课;
nick_name string 昵称(用户账户体系中的用户昵称)
custom_id string 自定义id(用户账户体系中的用户ID,同一个ID只能对应一个角色)
child_id int 子账户ID

响应参数

返回数据如下:

参数名 类型 说明
total int 总条数
total_page int 总页数
curr_page int 当前页数
created_at string 创建时间
duration string 回放时长
name string 回放名称
record_id int 回放视频ID
preview_url string 回放预览地址

响应示例

	{
    	"code": 200,
		"msg": "success",
		"data": {
        	"total": 1,
        	"total_page": 1,
        	"curr_page": "1",
        	"pagesize": 5,
        	"data": [
            	{
                "created_at": "2018-05-30 17:31",
                "duration": "00:05:07",
                "name": "8872",
                "storage": 20270,
                "record_id": 3102,
				"preview_url":"https://class.vhall.com/#playPreview/recordId?auth_token=xxxxx"
            	}
        	]
    	}
	}

错误码

code 含义
400 pagesize大于50条
1005 课程不存在
10017 小课堂没有此角色
10018 公开课没有此角色