Commit 59abe6b4e1e122fc716d053568fc61534aaf904f

Authored by 张奎
1 parent cc8bd1b7

定义接口

12.内容库云/1.2.2 内容云入库接口_ live_live.md deleted 100644 → 0
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 -```  
128 \ No newline at end of file 0 \ No newline at end of file
12.内容库云/1.3.1 内容云入库接口_audio_mam.md deleted 100644 → 0
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 -```  
128 \ No newline at end of file 0 \ No newline at end of file
12.内容库云/1.4.3 内容云入库接口_article_cms.md deleted 100644 → 0
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 -```  
115 \ No newline at end of file 0 \ No newline at end of file
12.内容库云/1.5.3 内容云入库接口_pics_cms.md deleted 100644 → 0
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 -```  
113 \ No newline at end of file 0 \ No newline at end of file
12.内容库云/3.0 获取分类树接口.md renamed to 12.内容库云/2.0 获取分类树接口.md
12.内容库云/2.1 内容云查询接口.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 -|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 -```  
126 \ No newline at end of file 0 \ No newline at end of file
12.内容库云/3.1 获取点播列表接口Server.md renamed to 12.内容库云/2.1 获取点播列表接口Server.md