Commit 63717c1ac42bf627b05196b2e8f91ae2a2c0ef07
1 parent
07b01060
修改
Showing
2 changed files
with
58 additions
and
83 deletions
01.点播云/3.0 获取分类树接口.md
0 → 100644
| 1 | +/* | |
| 2 | +Title: 3.0 获取分类树接口 | |
| 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 | +|spId| string | false | spId,为空时返回全局根分类列表,不为空时返回指定SP下的分类树 | | |
| 19 | +|sign| String | true | 签名规则见 [签名详情] (http://help.open.cnlive.com/common.html) | | |
| 20 | + | |
| 21 | +### 返回值 ### | |
| 22 | + | |
| 23 | +| 参数名 | 参数类型 | 必选 | 参数说明 | | |
| 24 | +| :-----------| :------: | :------: | :------: | | |
| 25 | +| errorCode| int | true | 错误类型号 | | |
| 26 | +| errorMessage| string | true | 错误类型 | | |
| 27 | +| categoryId| int | true | 分类Id | | |
| 28 | +| categoryName| string | false | 分类名称 | | |
| 29 | +| parentId| int | false | 父分类Id | | |
| 30 | + | |
| 31 | + | |
| 32 | +返回JSON格式的节目元数据信息,json示例如下: | |
| 33 | + | |
| 34 | +``` json | |
| 35 | +{ | |
| 36 | + "data":{ | |
| 37 | + "categorys": [ | |
| 38 | + { | |
| 39 | + "categoryId": 1000, | |
| 40 | + "title": "娱乐", | |
| 41 | + "parentId": 0, | |
| 42 | + "createDate": "2017-09-10 10:20:30", | |
| 43 | + "lastModify": "2017-09-11 12:21:32" | |
| 44 | + }, | |
| 45 | + { | |
| 46 | + "categoryId": 1234, | |
| 47 | + "title": "娱乐", | |
| 48 | + "parentId": 1000, | |
| 49 | + "createDate": "2017-09-10 10:20:30", | |
| 50 | + "lastModify": "2017-09-11 12:21:32" | |
| 51 | + } | |
| 52 | + ] | |
| 53 | + | |
| 54 | + }, | |
| 55 | + "errorCode":0, | |
| 56 | + "errorMessage":"sucess" | |
| 57 | +} | |
| 58 | +``` | ... | ... |
01.点播云/3.0 获取点播列表接口Server.md deleted
100644 → 0
| 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 | -``` | |
| 84 | 0 | \ No newline at end of file |