Commit 113882d9dcd97f1b8cf972b3da5dbaf88560171f
1 parent
92ef6c7c
修改内容列表接口
Showing
1 changed file
with
83 additions
and
0 deletions
01.点播云/3.0 获取点播列表接口Server.md
0 → 100644
| 1 | +/* | ||
| 2 | +Title: 1.1 获取点播信息接口 | ||
| 3 | +*/ | ||
| 4 | + | ||
| 5 | +### 接口描述 ### | ||
| 6 | + | ||
| 7 | + | ||
| 8 | +### 接口地址 ### | ||
| 9 | +http://api.cnlive.com/open/api2/vod_epg/getVodInfo4Server | ||
| 10 | + | ||
| 11 | +### 接口协议 ### | ||
| 12 | +HTTP GET | ||
| 13 | + | ||
| 14 | +### 接口请求参数 ### | ||
| 15 | +|参数名| 参数类型 | 必选 | 参数说明 | | ||
| 16 | +|:----- | :------: | :------: | :------: | | ||
| 17 | +|appId| string | true | 应用ID | | ||
| 18 | +|categoryId| string | true | 点播节目标识(直播回放的vId就是创建直播活动时的activityId) | | ||
| 19 | +|spIds| string | true | 点播节目标识(直播回放的vId就是创建直播活动时的activityId) | | ||
| 20 | +|page| string | true | 点播节目标识(直播回放的vId就是创建直播活动时的activityId) | | ||
| 21 | +|pageSize| string | true | 点播节目标识(直播回放的vId就是创建直播活动时的activityId) | | ||
| 22 | +|lastModify| string | true | 时间戳,返回最后修改时间在此时间之后的所有内容 | | ||
| 23 | +|timestamp| int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 | | ||
| 24 | +|sign| String | true | 签名规则见 [签名详情] (http://help.open.cnlive.com/common.html) | | ||
| 25 | + | ||
| 26 | +### 返回值 ### | ||
| 27 | + | ||
| 28 | +| 参数名 | 参数类型 | 必选 | 参数说明 | | ||
| 29 | +| :-----------| :------: | :------: | :------: | | ||
| 30 | +| errorCode| int | true | 错误类型号 | | ||
| 31 | +| errorMessage| string | true | 错误类型 | | ||
| 32 | +| videoId| string | true | 节目的唯一标识 | | ||
| 33 | +| videoName| string | true | 节目标题 | | ||
| 34 | +| subTitle| string | false | 节目副标题 | | ||
| 35 | +| desc| string | false | 节目描述 | | ||
| 36 | +| categoryName| string | false | 分类名称 | | ||
| 37 | +| customCategoryName| string | true | 自定义分类名称 | | ||
| 38 | +| tag| string | false | 标签,多个以 逗号分隔 | | ||
| 39 | +| spid| int | false | 所属sp | | ||
| 40 | +| imginfos| map | false | 图片信息| | ||
| 41 | +| rates | string | ture |清晰度标识,多个用逗号隔开: 流畅版=1,清晰版=2,高清版=3,超高清=4 | | ||
| 42 | + | ||
| 43 | +返回JSON格式的节目元数据信息,json示例如下: | ||
| 44 | + | ||
| 45 | +``` json | ||
| 46 | +{ | ||
| 47 | + "data":{ | ||
| 48 | + "programs":[ { | ||
| 49 | + "videoId":"17cbfede6f074db18d06fdeb170e41c4", | ||
| 50 | + "videoName":"大道之行一带一路", | ||
| 51 | + "categoryName":"资讯", | ||
| 52 | + "desc":"一带一路特别节目", | ||
| 53 | + "imginfos":{ | ||
| 54 | + "316*506":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506", | ||
| 55 | + "112*63":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/112/h/63" | ||
| 56 | + }, | ||
| 57 | + "rates":"1,2", | ||
| 58 | + "spid":60, | ||
| 59 | + "subTitle":"", | ||
| 60 | + "tag":"丝绸之路,一带一路,文化交流,中华文化" | ||
| 61 | + }, | ||
| 62 | + { | ||
| 63 | + "videoId":"17cbfede6f074db18d06fdeb170e41c4", | ||
| 64 | + "videoName":"大道之行一带一路", | ||
| 65 | + "categoryName":"资讯", | ||
| 66 | + "desc":"一带一路特别节目", | ||
| 67 | + "imginfos":{ | ||
| 68 | + "316*506":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506", | ||
| 69 | + "112*63":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/112/h/63" | ||
| 70 | + }, | ||
| 71 | + "rates":"1,2", | ||
| 72 | + "spid":60, | ||
| 73 | + "subTitle":"", | ||
| 74 | + "tag":"丝绸之路,一带一路,文化交流,中华文化" | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | + ] | ||
| 78 | + | ||
| 79 | + }, | ||
| 80 | + "errorCode":0, | ||
| 81 | + "errorMessage":"sucess" | ||
| 82 | +} | ||
| 83 | +``` | ||
| 0 | \ No newline at end of file | 84 | \ No newline at end of file |