Commit 63fd886359d48dd9406d8e31b07dfb707308ff64

Authored by LSL
2 parents a1cf6675 0295d052

Merge remote-tracking branch 'origin/master'

00.公共组件/1.3sdk.md
@@ -12,12 +12,12 @@ @@ -12,12 +12,12 @@
12 * [Android 推流 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNStreamDemo/tree/master) 12 * [Android 推流 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNStreamDemo/tree/master)
13 * [Android 短视频 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNLiveShortVideoDemo.git) 13 * [Android 短视频 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNLiveShortVideoDemo.git)
14 * [Android 云存储 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNUploadDemo.git) 14 * [Android 云存储 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNUploadDemo.git)
15 -* [Android 播放器 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNVideoDemo/tree/master)  
16 -* [Android 聊天室 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNIMDemo/tree/master)  
17 -* [Android 统计 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNAnalyticsDemo)  
18 -* [Android 用户 SDK及文档] (http://bj.gitlab.cnlive.com/cnlive-team/CNUserDemo/tree/master)  
19 -* [Android 支付 SDK及文档] (http://bj.gitlab.cnlive.com/cnlive-team/CNLivePayDemo/tree/master)  
20 -* [Android SDK App示例程序] (http://bj.gitlab.cnlive.com/cnlive-team/CNLiveApp) 15 +* [Android 播放器 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNVideoDemo.git)
  16 +* [Android 聊天室 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNIMDemo.git)
  17 +* [Android 统计 SDK及文档下载] (http://bj.gitlab.cnlive.com/cnlive-team/CNAnalyticsDemo.git)
  18 +* [Android 用户 SDK及文档] (http://bj.gitlab.cnlive.com/cnlive-team/CNUserDemo.git)
  19 +* [Android 支付 SDK及文档] (http://bj.gitlab.cnlive.com/cnlive-team/CNLivePayDemo.git)
  20 +* [Android SDK App示例程序] (http://bj.gitlab.cnlive.com/cnlive-team/CNLiveApp.git)
21 21
22 ## java 示例代码 22 ## java 示例代码
23 ```java 23 ```java
01.点播云/3.0 获取分类树接口.md 0 → 100644
  1 +/*
  2 +Title: 3.0 获取分类树接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +根分类是常量,共有7个,每个SP都有,分别如下:电影100001电视剧100002;娱乐100004;资讯100008;体育100012;教育100016;其他100026
  8 +
  9 +### 接口地址 ###
  10 +http://api.cnlive.com/open/api2/...
  11 +
  12 +### 接口协议 ###
  13 +HTTP GET
  14 +
  15 +### 接口请求参数 ###
  16 +|参数名| 参数类型 | 必选 | 参数说明 |
  17 +|:----- | :------: | :------: | :------: |
  18 +|appId| string | true | 应用ID |
  19 +|spId| string | true | spId 不为空时返回指定SP下的分类树 |
  20 +|sign| String | true | 签名规则见 [签名详情] (http://help.open.cnlive.com/common.html) |
  21 +
  22 +### 返回值 ###
  23 +
  24 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  25 +| :-----------| :------: | :------: | :------: |
  26 +| errorCode| int | true | 错误类型号 |
  27 +| errorMessage| string | true | 错误类型 |
  28 +| categoryId| int | true | 分类Id |
  29 +| categoryName| string | false | 分类名称 |
  30 +| parentId| int | false | 父分类Id |
  31 +
  32 +
  33 +返回JSON格式的节目元数据信息,json示例如下:
  34 +
  35 +``` json
  36 +{
  37 + "data":{
  38 + "categorys": [
  39 + {
  40 + "categoryId": 1000,
  41 + "categoryName": "娱乐",
  42 + "parentId": 0
  43 + },
  44 + {
  45 + "categoryId": 1234,
  46 + "categoryName": "娱乐",
  47 + "parentId": 1000
  48 + }
  49 + ]
  50 +
  51 + },
  52 + "errorCode":0,
  53 + "errorMessage":"sucess"
  54 +}
  55 +```
0 \ No newline at end of file 56 \ No newline at end of file
01.点播云/3.1 获取点播列表接口Server.md 0 → 100644
  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 +|categoryId| int | false | 分类Id,从分类树接口中取。 categoryId 和spId 不能同时为空 根分类7个是常量,每个SP都有,分别如下:电影100001电视剧100002;娱乐100004;资讯100008;体育100012;教育100016;其他100026|
  19 +|spIds| string | false | spId,可以传多个,以逗号隔开。 categoryId 和spId 不能同时为空 |
  20 +|page| string | false | 页号,如为空,默认值:1 |
  21 +|pageSize| string | false | 每页返回条数,如为空,默认值:20 |
  22 +|lastModify| long | false | 时间戳,返回最后修改时间在此时间之后的所有内容 |
  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 +| categoryId| int | true | 分类Id |
  37 +| categoryName| string | false | 分类名称 |
  38 +| tag| string | false | 标签,多个以 逗号分隔 |
  39 +| spid| int | false | 所属sp |
  40 +| createDate| string | true | 内容创建时间 |
  41 +| lastModify| string | true | 最后修改时间 |
  42 +| imginfos| map | false | 图片信息|
  43 +
  44 +返回JSON格式的节目元数据信息,json示例如下:
  45 +
  46 +``` json
  47 +{
  48 + "data":{
  49 + "programs":[ {
  50 + "videoId":"17cbfede6f074db18d06fdeb170e41c4",
  51 + "videoName":"大道之行一带一路",
  52 + "categoryId":123,
  53 + "categoryName":"资讯",
  54 + "desc":"一带一路特别节目",
  55 + "imginfos":{
  56 + "316*506":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  57 + "112*63":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/112/h/63"
  58 + },
  59 + "rates":"1,2",
  60 + "spid":60,
  61 + "subTitle":"",
  62 + "tag":"丝绸之路,一带一路,文化交流,中华文化",
  63 + "createDate":"2017-09-20 12:30:34",
  64 + "lastModify":"2017-09-21 12:30:34"
  65 + },
  66 + {
  67 + "videoId":"17cbfede6f074db18d06fdeb170e41c4",
  68 + "videoName":"大道之行一带一路",
  69 + "categoryId":123,
  70 + "categoryName":"资讯",
  71 + "desc":"一带一路特别节目",
  72 + "imginfos":{
  73 + "316*506":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  74 + "112*63":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/112/h/63"
  75 + },
  76 + "rates":"1,2",
  77 + "spid":60,
  78 + "subTitle":"",
  79 + "tag":"丝绸之路,一带一路,文化交流,中华文化",
  80 + "createDate":"2017-09-20 12:30:34",
  81 + "lastModify":"2017-09-21 12:30:34"
  82 + }
  83 +
  84 + ]
  85 +
  86 + },
  87 + "errorCode":0,
  88 + "errorMessage":"sucess"
  89 +}
  90 +```
0 \ No newline at end of file 91 \ No newline at end of file
12.内容库云/1.1.1 内容云入库接口_video_mam.md 0 → 100644
  1 +/*
  2 +Title: 1.1 内容云入库接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/nry/add
  10 +
  11 +### 接口协议 ###
  12 +HTTP POST
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
  18 +| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
  19 +| spName | string | false | |
  20 +| cpId | string | true | cp标识 |
  21 +| cpName | string | false | |
  22 +| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
  23 +| title | string | true | 内容标题 |
  24 +| subTitle | string | true | 内容副标题 |
  25 +| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
  26 +| categoryName | string | true | 全路径,用’\‘隔开 |
  27 +| editorId | string | false | 编辑标识 |
  28 +| editorName | string | false | 编辑名称 |
  29 +| keywords | string | false | 关键词 |
  30 +| pageUrl | string | false | 内容的页面地址 |
  31 +| description | string | false | 描述 |
  32 +| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
  33 +| imgJson | string | true | 图片:json格式 |
  34 +| director | string | false | 导演 |
  35 +| actors | string | false | 演员 |
  36 +| albumName | string | false | 专辑名称 |
  37 +| area | string | true | 地区 |
  38 +| year | string | true | 年代 |
  39 +| createTime | string | true | 创建时间 |
  40 +| publishTime | string | true | 发布时间 |
  41 +| verTimestamp | string | true | 时间戳版本 |
  42 +| weight | string | true | 权重, 取值:0 ~ 100 |
  43 +| extension1 | string | true | 扩展字段1 |
  44 +| extension2 | string | true | 扩展字段2 |
  45 +| extensions | string | true | 扩展字段:json格式 |
  46 +
  47 +
  48 +### 返回值 ###
  49 +
  50 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  51 +| :-----------| :------: | :------: | :------: |
  52 +| errorCode| int | true | 错误类型号 |
  53 +| errorMessage| string | true | 错误类型 |
  54 +
  55 +请求JSON格式的节目元数据信息,json示例如下:
  56 +
  57 +``` json
  58 +{
  59 + "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  60 + "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  61 + "spId":"82",
  62 + "spName":"视讯中国",
  63 + "cpId":"1",
  64 + "cpName":"",
  65 + "status":"1",
  66 + "title":"李雨桐风波后首度亮相心情好",
  67 + "subTitle":"李雨桐风波后心情好",
  68 + "categoryId":"001/123",
  69 + "categoryName":"娱乐/港台",
  70 + "editorId":"123",
  71 + "editorName":"李四",
  72 + "keywords":"刘德华/关之琳",
  73 + "pageUrl":"http://www.cnlive.com/yule/1234.html",
  74 + "description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
  75 + "copyrightId":"1",
  76 + "director":"冯小刚",
  77 + "actors":"葛优",
  78 + "albumName":"专题1",
  79 + "area":"大陆",
  80 + "year":"90",
  81 + "createTime":"2017-10-12 11:12:01",
  82 + "publishTime":"1998-05-12 09:16:20",
  83 + "verTimestamp":"2017-10-12 11:12:01",
  84 + "weight":"60",
  85 + "extension1":"扩展值1",
  86 + "extension2":"扩展值2",
  87 + "extensions":{
  88 + "albumPrgCounts":"20",
  89 + "albumPrgSeqNo":"1",
  90 + "durationBySec":"209",
  91 + "language":"汉语"
  92 + },
  93 + "imgJson":[
  94 + {
  95 + "type":"titleImage",
  96 + "format":"316*506",
  97 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  98 + "desc":"图片介绍"
  99 + },
  100 + {
  101 + "type":"contentImage",
  102 + "format":"485*303",
  103 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  104 + "desc":"图片介绍"
  105 + }
  106 + ]
  107 +}
  108 +```
  109 +
  110 +返回JSON格式的节目元数据信息,json示例如下:
  111 +
  112 +``` json
  113 +{
  114 + "data":{
  115 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  116 + "title":"一带一路特别节目"
  117 + },
  118 + "errorCode":0,
  119 + "errorMessage":"sucess"
  120 +}
  121 +```
0 \ No newline at end of file 122 \ No newline at end of file
12.内容库云/1.1.2 内容云入库接口_video_live.md 0 → 100644
  1 +/*
  2 +Title: 1.1 内容云入库接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/nry/add
  10 +
  11 +### 接口协议 ###
  12 +HTTP POST
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
  18 +| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
  19 +| spId | string | true | |
  20 +| spName | string | false | |
  21 +| cpId | string | true | cp标识 |
  22 +| cpName | string | false | |
  23 +| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
  24 +| title | string | true | 内容标题 |
  25 +| subTitle | string | true | 内容副标题 |
  26 +| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
  27 +| categoryName | string | true | 全路径,用’\‘隔开 |
  28 +| editorId | string | false | 编辑标识 |
  29 +| editorName | string | false | 编辑名称 |
  30 +| keywords | string | false | 关键词 |
  31 +| pageUrl | string | false | 内容的页面地址 |
  32 +| description | string | false | 描述 |
  33 +| bodyContent | string | false | 文本内容,含html代码,传输时注意编码 |
  34 +| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
  35 +| imgJson | string | true | 图片:json格式 |
  36 +| director | string | false | 导演 |
  37 +| actors | string | false | 演员 |
  38 +| albumName | string | false | 专辑名称 |
  39 +| area | string | true | 地区 |
  40 +| year | string | true | 年代 |
  41 +| createTime | string | true | 创建时间 |
  42 +| publishTime | string | true | 发布时间 |
  43 +| verTimestamp | string | true | 时间戳版本 |
  44 +| weight | string | true | 权重, 取值:0 ~ 100 |
  45 +| extension1 | string | true | 扩展字段1 |
  46 +| extension2 | string | true | 扩展字段2 |
  47 +| extensions | string | true | 扩展字段:json格式 |
  48 +
  49 +
  50 +### 返回值 ###
  51 +
  52 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  53 +| :-----------| :------: | :------: | :------: |
  54 +| errorCode| int | true | 错误类型号 |
  55 +| errorMessage| string | true | 错误类型 |
  56 +
  57 +请求JSON格式的节目元数据信息,json示例如下:
  58 +
  59 +``` json
  60 +{
  61 + "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  62 + "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  63 + "spId":"82",
  64 + "spName":"视讯中国",
  65 + "cpId":"1",
  66 + "cpName":"",
  67 + "status":"1",
  68 + "title":"李雨桐风波后首度亮相心情好",
  69 + "subTitle":"李雨桐风波后心情好",
  70 + "categoryId":"001/123",
  71 + "categoryName":"娱乐/港台",
  72 + "editorId":"123",
  73 + "editorName":"李四",
  74 + "keywords":"刘德华/关之琳",
  75 + "pageUrl":"http://www.cnlive.com/yule/1234.html",
  76 + "description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
  77 + "bodyContent":"",
  78 + "copyrightId":"1",
  79 + "director":"冯小刚",
  80 + "actors":"葛优",
  81 + "albumName":"专题1",
  82 + "area":"大陆",
  83 + "year":"90",
  84 + "createTime":"2017-10-12 11:12:01",
  85 + "publishTime":"1998-05-12 09:16:20",
  86 + "verTimestamp":"2017-10-12 11:12:01",
  87 + "weight":"60",
  88 + "extension1":"扩展值1",
  89 + "extension2":"扩展值2",
  90 + "extensions":{
  91 + "albumPrgCounts":"20",
  92 + "albumPrgSeqNo":"1",
  93 + "durationBySec":"209",
  94 + "language":"汉语"
  95 + },
  96 + "imgJson":[
  97 + {
  98 + "type":"titleImage",
  99 + "format":"316*506",
  100 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  101 + "desc":"图片介绍"
  102 + },
  103 + {
  104 + "type":"contentImage",
  105 + "format":"485*303",
  106 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  107 + "desc":"图片介绍"
  108 + }
  109 + ]
  110 +}
  111 +```
  112 +
  113 +返回JSON格式的节目元数据信息,json示例如下:
  114 +
  115 +``` json
  116 +{
  117 + "data":{
  118 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  119 + "title":"一带一路特别节目"
  120 + },
  121 + "errorCode":0,
  122 + "errorMessage":"sucess"
  123 +}
  124 +```
0 \ No newline at end of file 125 \ No newline at end of file
12.内容库云/1.1.3 内容云入库接口_video_cms.md 0 → 100644
  1 +/*
  2 +Title: 1.1 内容云入库接口: 发布云向内容库云同步视频内容接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/nry/add
  10 +
  11 +### 接口协议 ###
  12 +HTTP POST
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
  18 +| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
  19 +| spId | string | true | |
  20 +| spName | string | false | |
  21 +| cpId | string | true | cp标识 |
  22 +| cpName | string | false | |
  23 +| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
  24 +| title | string | true | 内容标题 |
  25 +| subTitle | string | true | 内容副标题 |
  26 +| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
  27 +| categoryName | string | true | 全路径,用’\‘隔开 |
  28 +| editorId | string | false | 编辑标识 |
  29 +| editorName | string | false | 编辑名称 |
  30 +| keywords | string | false | 关键词 |
  31 +| pageUrl | string | false | 内容的页面地址 |
  32 +| description | string | false | 描述 |
  33 +| bodyContent | string | false | 文本内容,含html代码,传输时注意编码 |
  34 +| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
  35 +| imgJson | string | true | 图片:json格式 |
  36 +| director | string | false | 导演 |
  37 +| actors | string | false | 演员 |
  38 +| albumName | string | false | 专辑名称 |
  39 +| area | string | true | 地区 |
  40 +| year | string | true | 年代 |
  41 +| createTime | string | true | 创建时间 |
  42 +| publishTime | string | true | 发布时间 |
  43 +| verTimestamp | string | true | 时间戳版本 |
  44 +| weight | string | true | 权重, 取值:0 ~ 100 |
  45 +| extension1 | string | true | 扩展字段1 |
  46 +| extension2 | string | true | 扩展字段2 |
  47 +| extensions | string | true | 扩展字段:json格式 |
  48 +
  49 +
  50 +### 返回值 ###
  51 +
  52 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  53 +| :-----------| :------: | :------: | :------: |
  54 +| errorCode| int | true | 错误类型号 |
  55 +| errorMessage| string | true | 错误类型 |
  56 +
  57 +请求JSON格式的节目元数据信息,json示例如下:
  58 +
  59 +``` json
  60 +{
  61 + "source":"mam",
  62 + "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  63 + "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  64 + "groupType":"program",
  65 + "contentType":"video",
  66 + "spId":"82",
  67 + "spName":"视讯中国",
  68 + "cpId":"1",
  69 + "cpName":"",
  70 + "status":"1",
  71 + "title":"李雨桐风波后首度亮相心情好",
  72 + "subTitle":"李雨桐风波后心情好",
  73 + "categoryId":"001/123",
  74 + "categoryName":"娱乐/港台",
  75 + "editorId":"123",
  76 + "editorName":"李四",
  77 + "keywords":"刘德华/关之琳",
  78 + "pageUrl":"http://www.cnlive.com/yule/1234.html",
  79 + "description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
  80 + "bodyContent":"",
  81 + "copyrightId":"1",
  82 + "director":"冯小刚",
  83 + "actors":"葛优",
  84 + "albumName":"专题1",
  85 + "area":"大陆",
  86 + "year":"90",
  87 + "createTime":"2017-10-12 11:12:01",
  88 + "publishTime":"1998-05-12 09:16:20",
  89 + "verTimestamp":"2017-10-12 11:12:01",
  90 + "weight":"60",
  91 + "extension1":"扩展值1",
  92 + "extension2":"扩展值2",
  93 + "extensions":{
  94 + "albumPrgCounts":"20",
  95 + "albumPrgSeqNo":"1",
  96 + "durationBySec":"209",
  97 + "language":"汉语"
  98 + },
  99 + "imgJson":[
  100 + {
  101 + "type":"titleImage",
  102 + "format":"316*506",
  103 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  104 + "desc":"图片介绍"
  105 + },
  106 + {
  107 + "type":"contentImage",
  108 + "format":"485*303",
  109 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  110 + "desc":"图片介绍"
  111 + }
  112 + ]
  113 +}
  114 +```
  115 +
  116 +返回JSON格式的节目元数据信息,json示例如下:
  117 +
  118 +``` json
  119 +{
  120 + "data":{
  121 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  122 + "title":"一带一路特别节目"
  123 + },
  124 + "errorCode":0,
  125 + "errorMessage":"sucess"
  126 +}
  127 +```
0 \ No newline at end of file 128 \ No newline at end of file
12.内容库云/1.1.4 内容云入库接口_video_ring7.md 0 → 100644
  1 +/*
  2 +Title: 1.1 内容云入库接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/nry/add
  10 +
  11 +### 接口协议 ###
  12 +HTTP POST
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
  18 +| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
  19 +| spId | string | true | |
  20 +| spName | string | false | |
  21 +| cpId | string | true | cp标识 |
  22 +| cpName | string | false | |
  23 +| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
  24 +| title | string | true | 内容标题 |
  25 +| subTitle | string | true | 内容副标题 |
  26 +| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
  27 +| categoryName | string | true | 全路径,用’\‘隔开 |
  28 +| editorId | string | false | 编辑标识 |
  29 +| editorName | string | false | 编辑名称 |
  30 +| keywords | string | false | 关键词 |
  31 +| pageUrl | string | false | 内容的页面地址 |
  32 +| description | string | false | 描述 |
  33 +| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
  34 +| imgJson | string | true | 图片:json格式 |
  35 +| director | string | false | 导演 |
  36 +| actors | string | false | 演员 |
  37 +| albumName | string | false | 专辑名称 |
  38 +| area | string | true | 地区 |
  39 +| year | string | true | 年代 |
  40 +| createTime | string | true | 创建时间 |
  41 +| publishTime | string | true | 发布时间 |
  42 +| verTimestamp | string | true | 时间戳版本 |
  43 +| weight | string | true | 权重, 取值:0 ~ 100 |
  44 +| extension1 | string | true | 扩展字段1 |
  45 +| extension2 | string | true | 扩展字段2 |
  46 +| extensions | string | true | 扩展字段:json格式 |
  47 +
  48 +
  49 +### 返回值 ###
  50 +
  51 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  52 +| :-----------| :------: | :------: | :------: |
  53 +| errorCode| int | true | 错误类型号 |
  54 +| errorMessage| string | true | 错误类型 |
  55 +
  56 +请求JSON格式的节目元数据信息,json示例如下:
  57 +
  58 +``` json
  59 +{
  60 + "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  61 + "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  62 + "spId":"82",
  63 + "spName":"视讯中国",
  64 + "cpId":"1",
  65 + "cpName":"",
  66 + "status":"1",
  67 + "title":"李雨桐风波后首度亮相心情好",
  68 + "subTitle":"李雨桐风波后心情好",
  69 + "categoryId":"001/123",
  70 + "categoryName":"娱乐/港台",
  71 + "editorId":"123",
  72 + "editorName":"李四",
  73 + "keywords":"刘德华/关之琳",
  74 + "pageUrl":"http://www.cnlive.com/yule/1234.html",
  75 + "description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
  76 + "copyrightId":"1",
  77 + "director":"冯小刚",
  78 + "actors":"葛优",
  79 + "albumName":"专题1",
  80 + "area":"大陆",
  81 + "year":"90",
  82 + "createTime":"2017-10-12 11:12:01",
  83 + "publishTime":"1998-05-12 09:16:20",
  84 + "verTimestamp":"2017-10-12 11:12:01",
  85 + "weight":"60",
  86 + "extension1":"扩展值1",
  87 + "extension2":"扩展值2",
  88 + "extensions":{
  89 + "albumPrgCounts":"20",
  90 + "albumPrgSeqNo":"1",
  91 + "durationBySec":"209",
  92 + "language":"汉语"
  93 + },
  94 + "imgJson":[
  95 + {
  96 + "type":"titleImage",
  97 + "format":"316*506",
  98 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  99 + "desc":"图片介绍"
  100 + },
  101 + {
  102 + "type":"contentImage",
  103 + "format":"485*303",
  104 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  105 + "desc":"图片介绍"
  106 + }
  107 + ]
  108 +}
  109 +```
  110 +
  111 +返回JSON格式的节目元数据信息,json示例如下:
  112 +
  113 +``` json
  114 +{
  115 + "data":{
  116 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  117 + "title":"一带一路特别节目"
  118 + },
  119 + "errorCode":0,
  120 + "errorMessage":"sucess"
  121 +}
  122 +```
0 \ No newline at end of file 123 \ No newline at end of file
12.内容库云/1.1.5 内容云入库接口_video_chinaorg.md 0 → 100644
  1 +/*
  2 +Title: 1.1 内容云入库接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/nry/add
  10 +
  11 +### 接口协议 ###
  12 +HTTP POST
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
  18 +| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
  19 +| spId | string | true | |
  20 +| spName | string | false | |
  21 +| cpId | string | true | cp标识 |
  22 +| cpName | string | false | |
  23 +| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
  24 +| title | string | true | 内容标题 |
  25 +| subTitle | string | true | 内容副标题 |
  26 +| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
  27 +| categoryName | string | true | 全路径,用’\‘隔开 |
  28 +| editorId | string | false | 编辑标识 |
  29 +| editorName | string | false | 编辑名称 |
  30 +| keywords | string | false | 关键词 |
  31 +| pageUrl | string | false | 内容的页面地址 |
  32 +| description | string | false | 描述 |
  33 +| bodyContent | string | false | 文本内容,含html代码,传输时注意编码 |
  34 +| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
  35 +| imgJson | string | true | 图片:json格式 |
  36 +| director | string | false | 导演 |
  37 +| actors | string | false | 演员 |
  38 +| albumName | string | false | 专辑名称 |
  39 +| area | string | true | 地区 |
  40 +| year | string | true | 年代 |
  41 +| createTime | string | true | 创建时间 |
  42 +| publishTime | string | true | 发布时间 |
  43 +| verTimestamp | string | true | 时间戳版本 |
  44 +| weight | string | true | 权重, 取值:0 ~ 100 |
  45 +| extension1 | string | true | 扩展字段1 |
  46 +| extension2 | string | true | 扩展字段2 |
  47 +| extensions | string | true | 扩展字段:json格式 |
  48 +
  49 +
  50 +### 返回值 ###
  51 +
  52 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  53 +| :-----------| :------: | :------: | :------: |
  54 +| errorCode| int | true | 错误类型号 |
  55 +| errorMessage| string | true | 错误类型 |
  56 +
  57 +请求JSON格式的节目元数据信息,json示例如下:
  58 +
  59 +``` json
  60 +{
  61 + "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  62 + "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  63 + "spId":"82",
  64 + "spName":"视讯中国",
  65 + "cpId":"1",
  66 + "cpName":"",
  67 + "status":"1",
  68 + "title":"李雨桐风波后首度亮相心情好",
  69 + "subTitle":"李雨桐风波后心情好",
  70 + "categoryId":"001/123",
  71 + "categoryName":"娱乐/港台",
  72 + "editorId":"123",
  73 + "editorName":"李四",
  74 + "keywords":"刘德华/关之琳",
  75 + "pageUrl":"http://www.cnlive.com/yule/1234.html",
  76 + "description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
  77 + "bodyContent":"",
  78 + "copyrightId":"1",
  79 + "director":"冯小刚",
  80 + "actors":"葛优",
  81 + "albumName":"专题1",
  82 + "area":"大陆",
  83 + "year":"90",
  84 + "createTime":"2017-10-12 11:12:01",
  85 + "publishTime":"1998-05-12 09:16:20",
  86 + "verTimestamp":"2017-10-12 11:12:01",
  87 + "weight":"60",
  88 + "extension1":"扩展值1",
  89 + "extension2":"扩展值2",
  90 + "extensions":{
  91 + "albumPrgCounts":"20",
  92 + "albumPrgSeqNo":"1",
  93 + "durationBySec":"209",
  94 + "language":"汉语"
  95 + },
  96 + "imgJson":[
  97 + {
  98 + "type":"titleImage",
  99 + "format":"316*506",
  100 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  101 + "desc":"图片介绍"
  102 + },
  103 + {
  104 + "type":"contentImage",
  105 + "format":"485*303",
  106 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  107 + "desc":"图片介绍"
  108 + }
  109 + ]
  110 +}
  111 +```
  112 +
  113 +返回JSON格式的节目元数据信息,json示例如下:
  114 +
  115 +``` json
  116 +{
  117 + "data":{
  118 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  119 + "title":"一带一路特别节目"
  120 + },
  121 + "errorCode":0,
  122 + "errorMessage":"sucess"
  123 +}
  124 +```
0 \ No newline at end of file 125 \ No newline at end of file
12.内容库云/1.2.2 内容云入库接口_ live_live.md 0 → 100644
  1 +/*
  2 +Title: 1.1 内容云入库接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/nry/add
  10 +
  11 +### 接口协议 ###
  12 +HTTP POST
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
  18 +| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
  19 +| spId | string | true | |
  20 +| spName | string | false | |
  21 +| cpId | string | true | cp标识 |
  22 +| cpName | string | false | |
  23 +| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
  24 +| title | string | true | 内容标题 |
  25 +| subTitle | string | true | 内容副标题 |
  26 +| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
  27 +| categoryName | string | true | 全路径,用’\‘隔开 |
  28 +| editorId | string | false | 编辑标识 |
  29 +| editorName | string | false | 编辑名称 |
  30 +| keywords | string | false | 关键词 |
  31 +| pageUrl | string | false | 内容的页面地址 |
  32 +| description | string | false | 描述 |
  33 +| bodyContent | string | false | 文本内容,含html代码,传输时注意编码 |
  34 +| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
  35 +| imgJson | string | true | 图片:json格式 |
  36 +| director | string | false | 导演 |
  37 +| actors | string | false | 演员 |
  38 +| albumName | string | false | 专辑名称 |
  39 +| area | string | true | 地区 |
  40 +| year | string | true | 年代 |
  41 +| createTime | string | true | 创建时间 |
  42 +| publishTime | string | true | 发布时间 |
  43 +| verTimestamp | string | true | 时间戳版本 |
  44 +| weight | string | true | 权重, 取值:0 ~ 100 |
  45 +| extension1 | string | true | 扩展字段1 |
  46 +| extension2 | string | true | 扩展字段2 |
  47 +| extensions | string | true | 扩展字段:json格式 |
  48 +
  49 +
  50 +### 返回值 ###
  51 +
  52 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  53 +| :-----------| :------: | :------: | :------: |
  54 +| errorCode| int | true | 错误类型号 |
  55 +| errorMessage| string | true | 错误类型 |
  56 +
  57 +请求JSON格式的节目元数据信息,json示例如下:
  58 +
  59 +``` json
  60 +{
  61 + "source":"mam",
  62 + "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  63 + "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  64 + "groupType":"program",
  65 + "contentType":"video",
  66 + "spId":"82",
  67 + "spName":"视讯中国",
  68 + "cpId":"1",
  69 + "cpName":"",
  70 + "status":"1",
  71 + "title":"李雨桐风波后首度亮相心情好",
  72 + "subTitle":"李雨桐风波后心情好",
  73 + "categoryId":"001/123",
  74 + "categoryName":"娱乐/港台",
  75 + "editorId":"123",
  76 + "editorName":"李四",
  77 + "keywords":"刘德华/关之琳",
  78 + "pageUrl":"http://www.cnlive.com/yule/1234.html",
  79 + "description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
  80 + "bodyContent":"",
  81 + "copyrightId":"1",
  82 + "director":"冯小刚",
  83 + "actors":"葛优",
  84 + "albumName":"专题1",
  85 + "area":"大陆",
  86 + "year":"90",
  87 + "createTime":"2017-10-12 11:12:01",
  88 + "publishTime":"1998-05-12 09:16:20",
  89 + "verTimestamp":"2017-10-12 11:12:01",
  90 + "weight":"60",
  91 + "extension1":"扩展值1",
  92 + "extension2":"扩展值2",
  93 + "extensions":{
  94 + "albumPrgCounts":"20",
  95 + "albumPrgSeqNo":"1",
  96 + "durationBySec":"209",
  97 + "language":"汉语"
  98 + },
  99 + "imgJson":[
  100 + {
  101 + "type":"titleImage",
  102 + "format":"316*506",
  103 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  104 + "desc":"图片介绍"
  105 + },
  106 + {
  107 + "type":"contentImage",
  108 + "format":"485*303",
  109 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  110 + "desc":"图片介绍"
  111 + }
  112 + ]
  113 +}
  114 +```
  115 +
  116 +返回JSON格式的节目元数据信息,json示例如下:
  117 +
  118 +``` json
  119 +{
  120 + "data":{
  121 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  122 + "title":"一带一路特别节目"
  123 + },
  124 + "errorCode":0,
  125 + "errorMessage":"sucess"
  126 +}
  127 +```
0 \ No newline at end of file 128 \ No newline at end of file
12.内容库云/1.3.1 内容云入库接口_audio_mam.md 0 → 100644
  1 +/*
  2 +Title: 1.1 内容云入库接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/nry/add
  10 +
  11 +### 接口协议 ###
  12 +HTTP POST
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
  18 +| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
  19 +| spId | string | true | |
  20 +| spName | string | false | |
  21 +| cpId | string | true | cp标识 |
  22 +| cpName | string | false | |
  23 +| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
  24 +| title | string | true | 内容标题 |
  25 +| subTitle | string | true | 内容副标题 |
  26 +| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
  27 +| categoryName | string | true | 全路径,用’\‘隔开 |
  28 +| editorId | string | false | 编辑标识 |
  29 +| editorName | string | false | 编辑名称 |
  30 +| keywords | string | false | 关键词 |
  31 +| pageUrl | string | false | 内容的页面地址 |
  32 +| description | string | false | 描述 |
  33 +| bodyContent | string | false | 文本内容,含html代码,传输时注意编码 |
  34 +| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
  35 +| imgJson | string | true | 图片:json格式 |
  36 +| director | string | false | 导演 |
  37 +| actors | string | false | 演员 |
  38 +| albumName | string | false | 专辑名称 |
  39 +| area | string | true | 地区 |
  40 +| year | string | true | 年代 |
  41 +| createTime | string | true | 创建时间 |
  42 +| publishTime | string | true | 发布时间 |
  43 +| verTimestamp | string | true | 时间戳版本 |
  44 +| weight | string | true | 权重, 取值:0 ~ 100 |
  45 +| extension1 | string | true | 扩展字段1 |
  46 +| extension2 | string | true | 扩展字段2 |
  47 +| extensions | string | true | 扩展字段:json格式 |
  48 +
  49 +
  50 +### 返回值 ###
  51 +
  52 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  53 +| :-----------| :------: | :------: | :------: |
  54 +| errorCode| int | true | 错误类型号 |
  55 +| errorMessage| string | true | 错误类型 |
  56 +
  57 +请求JSON格式的节目元数据信息,json示例如下:
  58 +
  59 +``` json
  60 +{
  61 + "source":"mam",
  62 + "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  63 + "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  64 + "groupType":"program",
  65 + "contentType":"video",
  66 + "spId":"82",
  67 + "spName":"视讯中国",
  68 + "cpId":"1",
  69 + "cpName":"",
  70 + "status":"1",
  71 + "title":"李雨桐风波后首度亮相心情好",
  72 + "subTitle":"李雨桐风波后心情好",
  73 + "categoryId":"001/123",
  74 + "categoryName":"娱乐/港台",
  75 + "editorId":"123",
  76 + "editorName":"李四",
  77 + "keywords":"刘德华/关之琳",
  78 + "pageUrl":"http://www.cnlive.com/yule/1234.html",
  79 + "description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
  80 + "bodyContent":"",
  81 + "copyrightId":"1",
  82 + "director":"冯小刚",
  83 + "actors":"葛优",
  84 + "albumName":"专题1",
  85 + "area":"大陆",
  86 + "year":"90",
  87 + "createTime":"2017-10-12 11:12:01",
  88 + "publishTime":"1998-05-12 09:16:20",
  89 + "verTimestamp":"2017-10-12 11:12:01",
  90 + "weight":"60",
  91 + "extension1":"扩展值1",
  92 + "extension2":"扩展值2",
  93 + "extensions":{
  94 + "albumPrgCounts":"20",
  95 + "albumPrgSeqNo":"1",
  96 + "durationBySec":"209",
  97 + "language":"汉语"
  98 + },
  99 + "imgJson":[
  100 + {
  101 + "type":"titleImage",
  102 + "format":"316*506",
  103 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  104 + "desc":"图片介绍"
  105 + },
  106 + {
  107 + "type":"contentImage",
  108 + "format":"485*303",
  109 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  110 + "desc":"图片介绍"
  111 + }
  112 + ]
  113 +}
  114 +```
  115 +
  116 +返回JSON格式的节目元数据信息,json示例如下:
  117 +
  118 +``` json
  119 +{
  120 + "data":{
  121 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  122 + "title":"一带一路特别节目"
  123 + },
  124 + "errorCode":0,
  125 + "errorMessage":"sucess"
  126 +}
  127 +```
0 \ No newline at end of file 128 \ No newline at end of file
12.内容库云/1.4.3 内容云入库接口_article_cms.md 0 → 100644
  1 +/*
  2 +Title: 1.1 内容云入库接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/nry/add
  10 +
  11 +### 接口协议 ###
  12 +HTTP POST
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
  18 +| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
  19 +| spId | string | true | |
  20 +| spName | string | false | |
  21 +| cpId | string | true | cp标识 |
  22 +| cpName | string | false | |
  23 +| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
  24 +| title | string | true | 内容标题 |
  25 +| subTitle | string | true | 内容副标题 |
  26 +| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
  27 +| categoryName | string | true | 全路径,用’\‘隔开 |
  28 +| editorId | string | false | 编辑标识 |
  29 +| editorName | string | false | 编辑名称 |
  30 +| keywords | string | false | 关键词 |
  31 +| pageUrl | string | false | 内容的页面地址 |
  32 +| description | string | false | 描述 |
  33 +| bodyContent | string | false | 文本内容,含html代码,传输时注意编码 |
  34 +| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
  35 +| imgJson | string | true | 图片:json格式 |
  36 +| createTime | string | true | 创建时间 |
  37 +| publishTime | string | true | 发布时间 |
  38 +| verTimestamp | string | true | 时间戳版本 |
  39 +| weight | string | true | 权重, 取值:0 ~ 100 |
  40 +| extension1 | string | true | 扩展字段1 |
  41 +| extension2 | string | true | 扩展字段2 |
  42 +| extensions | string | true | 扩展字段:json格式 |
  43 +
  44 +
  45 +### 返回值 ###
  46 +
  47 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  48 +| :-----------| :------: | :------: | :------: |
  49 +| errorCode| int | true | 错误类型号 |
  50 +| errorMessage| string | true | 错误类型 |
  51 +
  52 +请求JSON格式的节目元数据信息,json示例如下:
  53 +
  54 +``` json
  55 +{
  56 + "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  57 + "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  58 + "spId":"82",
  59 + "spName":"视讯中国",
  60 + "cpId":"1",
  61 + "cpName":"",
  62 + "status":"1",
  63 + "title":"李雨桐风波后首度亮相心情好",
  64 + "subTitle":"李雨桐风波后心情好",
  65 + "categoryId":"001/123",
  66 + "categoryName":"娱乐/港台",
  67 + "editorId":"123",
  68 + "editorName":"李四",
  69 + "keywords":"刘德华/关之琳",
  70 + "pageUrl":"http://www.cnlive.com/yule/1234.html",
  71 + "description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
  72 + "bodyContent":"",
  73 + "copyrightId":"1",
  74 + "createTime":"2017-10-12 11:12:01",
  75 + "publishTime":"1998-05-12 09:16:20",
  76 + "verTimestamp":"2017-10-12 11:12:01",
  77 + "weight":"60",
  78 + "extension1":"扩展值1",
  79 + "extension2":"扩展值2",
  80 + "extensions":{
  81 + "albumPrgCounts":"20",
  82 + "albumPrgSeqNo":"1",
  83 + "durationBySec":"209",
  84 + "language":"汉语"
  85 + },
  86 + "imgJson":[
  87 + {
  88 + "type":"titleImage",
  89 + "format":"316*506",
  90 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  91 + "desc":"图片介绍"
  92 + },
  93 + {
  94 + "type":"contentImage",
  95 + "format":"485*303",
  96 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  97 + "desc":"图片介绍"
  98 + }
  99 + ]
  100 +}
  101 +```
  102 +
  103 +返回JSON格式的节目元数据信息,json示例如下:
  104 +
  105 +``` json
  106 +{
  107 + "data":{
  108 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  109 + "title":"一带一路特别节目"
  110 + },
  111 + "errorCode":0,
  112 + "errorMessage":"sucess"
  113 +}
  114 +```
0 \ No newline at end of file 115 \ No newline at end of file
12.内容库云/1.5.3 内容云入库接口_pics_cms.md 0 → 100644
  1 +/*
  2 +Title: 1.1 内容云入库接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/nry/add
  10 +
  11 +### 接口协议 ###
  12 +HTTP POST
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
  18 +| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
  19 +| spId | string | true | |
  20 +| spName | string | false | |
  21 +| cpId | string | true | cp标识 |
  22 +| cpName | string | false | |
  23 +| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
  24 +| title | string | true | 内容标题 |
  25 +| subTitle | string | true | 内容副标题 |
  26 +| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
  27 +| categoryName | string | true | 全路径,用’\‘隔开 |
  28 +| editorId | string | false | 编辑标识 |
  29 +| editorName | string | false | 编辑名称 |
  30 +| keywords | string | false | 关键词 |
  31 +| pageUrl | string | false | 内容的页面地址 |
  32 +| description | string | false | 描述 |
  33 +| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
  34 +| imgJson | string | true | 图片:json格式 |
  35 +| createTime | string | true | 创建时间 |
  36 +| publishTime | string | true | 发布时间 |
  37 +| verTimestamp | string | true | 时间戳版本 |
  38 +| weight | string | true | 权重, 取值:0 ~ 100 |
  39 +| extension1 | string | true | 扩展字段1 |
  40 +| extension2 | string | true | 扩展字段2 |
  41 +| extensions | string | true | 扩展字段:json格式 |
  42 +
  43 +
  44 +### 返回值 ###
  45 +
  46 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  47 +| :-----------| :------: | :------: | :------: |
  48 +| errorCode| int | true | 错误类型号 |
  49 +| errorMessage| string | true | 错误类型 |
  50 +
  51 +请求JSON格式的节目元数据信息,json示例如下:
  52 +
  53 +``` json
  54 +{
  55 + "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  56 + "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
  57 + "spId":"82",
  58 + "spName":"视讯中国",
  59 + "cpId":"1",
  60 + "cpName":"",
  61 + "status":"1",
  62 + "title":"李雨桐风波后首度亮相心情好",
  63 + "subTitle":"李雨桐风波后心情好",
  64 + "categoryId":"001/123",
  65 + "categoryName":"娱乐/港台",
  66 + "editorId":"123",
  67 + "editorName":"李四",
  68 + "keywords":"刘德华/关之琳",
  69 + "pageUrl":"http://www.cnlive.com/yule/1234.html",
  70 + "description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
  71 + "copyrightId":"1",
  72 + "createTime":"2017-10-12 11:12:01",
  73 + "publishTime":"1998-05-12 09:16:20",
  74 + "verTimestamp":"2017-10-12 11:12:01",
  75 + "weight":"60",
  76 + "extension1":"扩展值1",
  77 + "extension2":"扩展值2",
  78 + "extensions":{
  79 + "albumPrgCounts":"20",
  80 + "albumPrgSeqNo":"1",
  81 + "durationBySec":"209",
  82 + "language":"汉语"
  83 + },
  84 + "imgJson":[
  85 + {
  86 + "type":"titleImage",
  87 + "format":"316*506",
  88 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  89 + "desc":"图片介绍"
  90 + },
  91 + {
  92 + "type":"contentImage",
  93 + "format":"485*303",
  94 + "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  95 + "desc":"图片介绍"
  96 + }
  97 + ]
  98 +}
  99 +```
  100 +
  101 +返回JSON格式的节目元数据信息,json示例如下:
  102 +
  103 +``` json
  104 +{
  105 + "data":{
  106 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  107 + "title":"一带一路特别节目"
  108 + },
  109 + "errorCode":0,
  110 + "errorMessage":"sucess"
  111 +}
  112 +```
0 \ No newline at end of file 113 \ No newline at end of file
12.内容库云/2.1 内容云查询接口.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 +|vId| string | true | 点播节目标识(直播回放的vId就是创建直播活动时的activityId) |
  19 +|timestamp| int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 |
  20 +|sign| String | true | 签名规则见 [签名详情] (http://help.open.cnlive.com/common.html) |
  21 +
  22 +### 返回值 ###
  23 +
  24 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  25 +| :-----------| :------: | :------: | :------: |
  26 +| errorCode| int | true | 错误类型号 |
  27 +| errorMessage| string | true | 错误类型 |
  28 +| videoName| string | true | 节目标题 |
  29 +| subTitle| string | false | 节目副标题 |
  30 +| desc| string | false | 节目描述 |
  31 +| categoryName| string | false | 分类名称 |
  32 +| customCategoryName| string | true | 自定义分类名称 |
  33 +| tag| string | false | 标签,多个以 逗号分隔 |
  34 +| videoId| string | true | 节目的唯一标识 |
  35 +| duration| int | false | 时长,单位 : 毫秒 |
  36 +| showFileSize| string | false | 文件大小 |
  37 +| spid| int | false | 所属sp |
  38 +| institutionName| string | true | 机构名称 |
  39 +| imginfos| map | false | 图片信息|
  40 +| rates | string | ture |清晰度标识,多个用逗号隔开: 流畅版=1,清晰版=2,高清版=3,超高清=4 |
  41 +| playUrls| Array | false | 播放url|
  42 +
  43 +返回JSON格式的节目元数据信息,json示例如下:
  44 +
  45 +``` json
  46 +{
  47 + "data":{
  48 + "categoryName":"资讯",
  49 + "desc":"一带一路特别节目",
  50 + "duration":324000,
  51 + "imginfos":{
  52 + "316*506":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  53 + "112*63":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/112/h/63",
  54 + "224*126":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/126",
  55 + "224*398":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  56 + "485*303":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/485/h/303"
  57 + },
  58 + "institutionName":"阿斯蒂芬村",
  59 + "rates":"1,2",
  60 + "showFileSize":418501536,
  61 + "spid":60,
  62 + "subTitle":"",
  63 + "tag":"丝绸之路,一带一路,文化交流,中华文化",
  64 + "videoId":"17cbfede6f074db18d06fdeb170e41c4",
  65 + "videoName":"大道之行一带一路",
  66 + "playUrls":[
  67 + {
  68 + "rate":2,
  69 + "fmt":"hls",
  70 + "url":"http://xxx.m3u8"
  71 + },
  72 + {
  73 + "rate":2,
  74 + "fmt":"mp4",
  75 + "url":"http://xxx.mp4"
  76 + }
  77 + ]
  78 + },
  79 + "errorCode":0,
  80 + "errorMessage":"sucess"
  81 +}
  82 +```
  83 +#### java 示例
  84 +
  85 +```java
  86 +public Object getVodUrl() {
  87 + String result = "";
  88 + Map params = new HashMap<>();
  89 + params.put("appId", "60_iqj730vn11");
  90 + params.put("vId", "174e6c5f3d9e4ddeb739feed1906fa11");
  91 + params.put("timestamp", System.currentTimeMillis()/1000+"");
  92 + String url = OpenUtil.buildURL("http://api.cnlive.com/open/api/dianbo/getVodInfo4Server", params, "appId对应key值");
  93 + HttpURLConnection connection;
  94 + try {
  95 + URL requestUrl = new URL(url);
  96 + connection = (HttpURLConnection)requestUrl.openConnection();
  97 + connection.setRequestMethod("GET");
  98 + connection.setDoInput(true);
  99 + connection.setDoOutput(true);
  100 + connection.connect();//连接
  101 +
  102 + //获得返回值
  103 + if(connection.getResponseCode() == HttpURLConnection.HTTP_OK){
  104 + InputStream in = connection.getInputStream();
  105 + String currentLine = "";
  106 + if(in != null){
  107 + BufferedReader br = new BufferedReader(new InputStreamReader(in,"utf-8"));
  108 + while((currentLine = br.readLine()) != null){
  109 + result += currentLine;
  110 + }
  111 + br.close();
  112 + }
  113 + }
  114 + }catch (Exception e) {
  115 + e.printStackTrace();
  116 + }
  117 +
  118 + if(BaseUtil.notBlank(result)) {
  119 + JSONObject resultJson = JSONObject.parseObject(result);
  120 + return resultJson
  121 + }
  122 +
  123 + return "";
  124 + }
  125 +```
0 \ No newline at end of file 126 \ No newline at end of file
12.内容库云/3.0 获取分类树接口.md 0 → 100644
  1 +/*
  2 +Title: 3.0 获取分类树接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +根分类是常量,共有7个,每个SP都有,分别如下:电影100001电视剧100002;娱乐100004;资讯100008;体育100012;教育100016;其他100026
  8 +
  9 +### 接口地址 ###
  10 +http://api.cnlive.com/open/api2/...
  11 +
  12 +### 接口协议 ###
  13 +HTTP GET
  14 +
  15 +### 接口请求参数 ###
  16 +|参数名| 参数类型 | 必选 | 参数说明 |
  17 +|:----- | :------: | :------: | :------: |
  18 +|appId| string | true | 应用ID |
  19 +|spId| string | true | spId 不为空时返回指定SP下的分类树 |
  20 +|sign| String | true | 签名规则见 [签名详情] (http://help.open.cnlive.com/common.html) |
  21 +
  22 +### 返回值 ###
  23 +
  24 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  25 +| :-----------| :------: | :------: | :------: |
  26 +| errorCode| int | true | 错误类型号 |
  27 +| errorMessage| string | true | 错误类型 |
  28 +| categoryId| int | true | 分类Id |
  29 +| categoryName| string | false | 分类名称 |
  30 +| parentId| int | false | 父分类Id |
  31 +
  32 +
  33 +返回JSON格式的节目元数据信息,json示例如下:
  34 +
  35 +``` json
  36 +{
  37 + "data":{
  38 + "categorys": [
  39 + {
  40 + "categoryId": 1000,
  41 + "categoryName": "娱乐",
  42 + "parentId": 0
  43 + },
  44 + {
  45 + "categoryId": 1234,
  46 + "categoryName": "娱乐",
  47 + "parentId": 1000
  48 + }
  49 + ]
  50 +
  51 + },
  52 + "errorCode":0,
  53 + "errorMessage":"sucess"
  54 +}
  55 +```
0 \ No newline at end of file 56 \ No newline at end of file
12.内容库云/3.1 获取点播列表接口Server.md 0 → 100644
  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 +|categoryId| int | false | 分类Id,从分类树接口中取。 categoryId 和spId 不能同时为空 根分类7个是常量,每个SP都有,分别如下:电影100001电视剧100002;娱乐100004;资讯100008;体育100012;教育100016;其他100026|
  19 +|spIds| string | false | spId,可以传多个,以逗号隔开。 categoryId 和spId 不能同时为空 |
  20 +|page| string | false | 页号,如为空,默认值:1 |
  21 +|pageSize| string | false | 每页返回条数,如为空,默认值:20 |
  22 +|lastModify| 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 +| uuid| string | true | 节目的唯一标识 |
  33 +| title| string | true | 节目标题 |
  34 +| subTitle| string | false | 节目副标题 |
  35 +| desc| string | false | 节目描述 |
  36 +| categoryId| int | true | 分类Id |
  37 +| categoryName| string | false | 分类名称 |
  38 +| tag| string | false | 标签,多个以 逗号分隔 |
  39 +| spId| int | false | 所属sp |
  40 +| createDate| string | true | 内容创建时间 |
  41 +| lastModify| string | true | 最后修改时间 |
  42 +| imgJson| map | false | 图片信息|
  43 +
  44 +返回JSON格式的节目元数据信息,json示例如下:
  45 +
  46 +``` json
  47 +{
  48 + "data":{
  49 + "programs":[ {
  50 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  51 + "title":"大道之行一带一路",
  52 + "categoryId":123,
  53 + "categoryName":"资讯",
  54 + "desc":"一带一路特别节目",
  55 + "imgJson":{
  56 + "316*506":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  57 + "112*63":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/112/h/63"
  58 + },
  59 + "rates":"1,2",
  60 + "spId":60,
  61 + "subTitle":"",
  62 + "tag":"丝绸之路,一带一路,文化交流,中华文化",
  63 + "createDate":"2017-09-20 12:30:34",
  64 + "lastModify":"2017-09-21 12:30:34"
  65 + },
  66 + {
  67 + "uuid":"17cbfede6f074db18d06fdeb170e41c4",
  68 + "title":"大道之行一带一路",
  69 + "categoryId":123,
  70 + "categoryName":"资讯",
  71 + "desc":"一带一路特别节目",
  72 + "imgJson":{
  73 + "316*506":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  74 + "112*63":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/112/h/63"
  75 + },
  76 + "rates":"1,2",
  77 + "spid":60,
  78 + "subTitle":"",
  79 + "tag":"丝绸之路,一带一路,文化交流,中华文化",
  80 + "createDate":"2017-09-20 12:30:34",
  81 + "lastModify":"2017-09-21 12:30:34"
  82 + }
  83 +
  84 + ]
  85 +
  86 + },
  87 + "errorCode":0,
  88 + "errorMessage":"sucess"
  89 +}
  90 +```
0 \ No newline at end of file 91 \ No newline at end of file