Commit 44dddbc4e9b54f933dd3a6f11c9eaa99d9db417f
1 parent
120d99b2
update
Showing
1 changed file
with
0 additions
and
107 deletions
12.内容库云/2.1 获取内容列表接口Server.md deleted
100644 → 0
| 1 | -;/* | ||
| 2 | -Title: 1.1 获取内容信息接口 | ||
| 3 | -*/ | ||
| 4 | - | ||
| 5 | -### 接口描述 ### | ||
| 6 | - | ||
| 7 | - | ||
| 8 | -### 接口地址 ### | ||
| 9 | -http://api.cnlive.com/open/api2/... | ||
| 10 | - | ||
| 11 | -### 接口协议 ### | ||
| 12 | -HTTP GET | ||
| 13 | - | ||
| 14 | -### 接口请求参数 ### | ||
| 15 | -|参数名| 参数类型 | 必选 | 参数说明 | | ||
| 16 | -|:----- | :------: | :------: | :------: | | ||
| 17 | -|appId| string | true | 应用ID | | ||
| 18 | -|keyword| string | false | 关键词 | | ||
| 19 | -|categoryId| int | false | 分类Id,从分类树接口中取。 categoryId 和spId 不能同时为空 根分类7个是常量,每个SP都有,分别如下:电影100001电视剧100002;娱乐100004;资讯100008;体育100012;教育100016;其他100026| | ||
| 20 | -|page| string | false | 页号,如为空,默认值:1 | | ||
| 21 | -|pageSize| string | false | 每页返回条数,如为空,默认值:20 | | ||
| 22 | -|verTimestamp| long | false | 时间戳 时间毫秒值,返回最后修改时间在此时间之后的所有内容 | | ||
| 23 | -|timestamp| int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确,该时间用于签名| | ||
| 24 | -|sign| String | true | 签名规则见 [签名详情] (http://console.open.cnlive.com/open/doc/sys/dianbo/t1/00.%E5%85%AC%E5%85%B1%E7%BB%84%E4%BB%B6/1.1%20SHA1%E7%AD%BE%E5%90%8D) | | ||
| 25 | - | ||
| 26 | -### 返回值 ### | ||
| 27 | - | ||
| 28 | -| 参数名 | 参数类型 | 必选 | 参数说明 | | ||
| 29 | -| :-----------| :------: | :------: | :------: | | ||
| 30 | -| errorCode| int | true | 错误类型号 | | ||
| 31 | -| errorMessage| string | true | 错误类型 | | ||
| 32 | -| totalNum| long | true | 总条数 | | ||
| 33 | -| nextCursor| long | true | 下一页 | | ||
| 34 | -| previousCursor| long | true | 上一页 | | ||
| 35 | -| uuid| string | true | 节目的唯一标识 | | ||
| 36 | -| title| string | true | 节目标题 | | ||
| 37 | -| subTitle| string | false | 节目副标题 | | ||
| 38 | -| desc| string | false | 节目描述 | | ||
| 39 | -| categoryId| int | true | 分类Id | | ||
| 40 | -| categoryName| string | false | 分类名称 | | ||
| 41 | -| tag| string | false | 标签,多个以 逗号分隔 | | ||
| 42 | -| rates| string | true | 视频码率格式,多种码率用逗号隔开,码率分别定义为:1:流畅;2:清晰;3:高清;4:超清 | | ||
| 43 | -| cpName| string | true | 所属cp, 没有所属CP的,用SPName代替 | | ||
| 44 | -| createDate| string | true | 内容创建时间 | | ||
| 45 | -| verTimestamp| long | true | 最后修改时间,时间戳 时间毫秒值 | | ||
| 46 | -| imgJson| map | false | 图片信息图片:json格式 <br/> type: 图片类型:titleImage:标题图片;contentImage:组图图片| | ||
| 47 | - | ||
| 48 | -返回JSON格式的节目元数据信息,json示例如下: | ||
| 49 | - | ||
| 50 | -``` json | ||
| 51 | -{ | ||
| 52 | - "errorCode": 0, | ||
| 53 | - "errorMessage": "成功", | ||
| 54 | - "data": { | ||
| 55 | - "programs": [ | ||
| 56 | - { | ||
| 57 | - "uuid": "60_d57ad6f690cd4d4899cf56eb32512c19", | ||
| 58 | - "title": "黄家驹宣传片", | ||
| 59 | - "categoryId": "100001/72/73", | ||
| 60 | - "categoryName": "电影/喜剧/电影喜剧子分类", | ||
| 61 | - "desc": "黄家驹宣传片", | ||
| 62 | - "imgJson": [ | ||
| 63 | - { | ||
| 64 | - "format": "485*303", | ||
| 65 | - "type": "contentImage", | ||
| 66 | - "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/485/h/303", | ||
| 67 | - "desc": "" | ||
| 68 | - }, | ||
| 69 | - { | ||
| 70 | - "format": "224*398", | ||
| 71 | - "type": "contentImage", | ||
| 72 | - "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/224/h/398", | ||
| 73 | - "desc": "" | ||
| 74 | - }, | ||
| 75 | - { | ||
| 76 | - "format": "316*506", | ||
| 77 | - "type": "contentImage", | ||
| 78 | - "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/316/h/506", | ||
| 79 | - "desc": "" | ||
| 80 | - }, | ||
| 81 | - { | ||
| 82 | - "format": "112*63", | ||
| 83 | - "type": "contentImage", | ||
| 84 | - "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/112/h/63", | ||
| 85 | - "desc": "" | ||
| 86 | - }, | ||
| 87 | - { | ||
| 88 | - "format": "224*126", | ||
| 89 | - "type": "contentImage", | ||
| 90 | - "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/224/h/126", | ||
| 91 | - "desc": "" | ||
| 92 | - } | ||
| 93 | - ], | ||
| 94 | - "rates": "2", | ||
| 95 | - "cpName": "测试账号", | ||
| 96 | - "subTitle": null, | ||
| 97 | - "tag": "黄家驹宣传片", | ||
| 98 | - "createDate": "2017-08-18", | ||
| 99 | - "verTimestamp": 1508320723191 | ||
| 100 | - } | ||
| 101 | - ], | ||
| 102 | - "totalNum": 1, | ||
| 103 | - "nextCursor": 0, | ||
| 104 | - "previousCursor": 0 | ||
| 105 | - } | ||
| 106 | -} | ||
| 107 | -``` | ||
| 108 | \ No newline at end of file | 0 | \ No newline at end of file |