Commit f71f5c2e2915163731ee8efab7529da114588779
1 parent
e91e569b
1
Showing
1 changed file
with
22 additions
and
9 deletions
12.内容库云/1.1.5 内容云入库接口_video_chinaorg.md
| 1 | 1 | /* |
| 2 | -Title: 1.1 内容云入库接口 | |
| 2 | +Title: 1.1 内容云入库接口: 发布云向内容库云同步视频内容接口 | |
| 3 | 3 | */ |
| 4 | 4 | |
| 5 | 5 | ### 接口描述 ### |
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | ### 接口地址 ### |
| 9 | -http://api.cnlive.com/open/api2/nry/add | |
| 9 | +http://cbase.cnlive.com/nry/add/cms | |
| 10 | 10 | |
| 11 | 11 | ### 接口协议 ### |
| 12 | 12 | HTTP POST |
| 13 | 13 | |
| 14 | 14 | ### 接口请求参数 ### |
| 15 | 15 | |参数名| 参数类型 | 必选 | 参数说明 | |
| 16 | -|:----- | :------: | :------: | :------: | | |
| 16 | +|:----- | :------: | :------: | :------: | | |
| 17 | 17 | | uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 | |
| 18 | 18 | | subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId | |
| 19 | 19 | | groupType | string | true | 组类型:program、richtxt等 ,内容分组:节目(来源于媒资库)、富文本(来自CMS或图片库等) | |
| ... | ... | @@ -34,7 +34,8 @@ HTTP POST |
| 34 | 34 | | description | string | false | 描述 | |
| 35 | 35 | | bodyContent | string | false | 文本内容,含html代码,传输时注意编码 | |
| 36 | 36 | | copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) | |
| 37 | -| imgJson | string | true | 图片:json格式 <br/> type: 图片类型:titleImage:标题图片;contentImage:组图图片| | |
| 37 | +| img | string | true | 图片:| | |
| 38 | +| groupImg| map | false |组图图片信息,仅对组图内容有效 useType: 1分辨率最小的,多分辨率依次递增| | |
| 38 | 39 | | director | string | false | 导演 | |
| 39 | 40 | | actors | string | false | 演员 | |
| 40 | 41 | | albumName | string | false | 专辑名称 | |
| ... | ... | @@ -60,6 +61,7 @@ HTTP POST |
| 60 | 61 | |
| 61 | 62 | ``` json |
| 62 | 63 | { |
| 64 | + "source":"mam", | |
| 63 | 65 | "uuid":"82_17cbfede6f074db18d06fdeb170e41c4", |
| 64 | 66 | "subUuid":"82_17cbfede6f074db18d06fdeb170e41c4", |
| 65 | 67 | "groupType":"program", |
| ... | ... | @@ -97,18 +99,29 @@ HTTP POST |
| 97 | 99 | "durationBySec":"209", |
| 98 | 100 | "language":"汉语" |
| 99 | 101 | }, |
| 100 | - "imgJson":[ | |
| 102 | + "img":[ | |
| 101 | 103 | { |
| 102 | - "type":"titleImage", | |
| 103 | 104 | "format":"316*506", |
| 104 | 105 | "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506", |
| 105 | - "desc":"图片介绍" | |
| 106 | 106 | }, |
| 107 | 107 | { |
| 108 | - "type":"contentImage", | |
| 109 | 108 | "format":"485*303", |
| 110 | 109 | "url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398", |
| 111 | - "desc":"图片介绍" | |
| 110 | + } | |
| 111 | + ], | |
| 112 | + "groupImg":[ | |
| 113 | + { | |
| 114 | + "imgInfo":[ | |
| 115 | + { | |
| 116 | + "format": "224*126", | |
| 117 | + "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/224/h/126" | |
| 118 | + }, | |
| 119 | + { | |
| 120 | + "format": "640*320", | |
| 121 | + "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/224/h/126" | |
| 122 | + } | |
| 123 | + ] | |
| 124 | + "desc": "" | |
| 112 | 125 | } |
| 113 | 126 | ] |
| 114 | 127 | } | ... | ... |