1.1.2 内容云入库接口_video_live.md
4.98 KB
/* Title: 1.1 内容云入库接口 */
接口描述
接口地址
http://cbase.cnlive.com/nry/add/live
接口协议
HTTP POST
接口请求参数
| 参数名 | 参数类型 | 必选 | 参数说明 |
|---|---|---|---|
| uuid | string | true | 内容标识, 确保唯一来源下,此内容ID唯一,视讯云点播云用globalId,cms可用contentId。 |
| subUuid | string | false | 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别,发布云为uuid,点播云为globalId |
| groupType | string | true | 组类型:program、richtxt等 ,内容分组:节目(来源于媒资库)、富文本(来自CMS或图片库等) |
| contentType | string | true | 内容类型:video、live、audio、pics、article等 , 内容类型(需要设计6个小的icon,便于内容结果展示的标示): 节目分下含:video(默认1)、live、audio 富文本含:article(默认0)、vtxt、spectxt、picstxt 注意:某节目可能被检索2次,即一个video类型,一个vtxt类型。 |
| spId | string | true | |
| spName | string | false | |
| cpId | string | true | cp标识 |
| cpName | string | false | |
| status | string | true | 上线状态, 1=上线,0下线,-1为删除。(0和-1是支持内部生产的查询) |
| title | string | true | 内容标题 |
| subTitle | string | true | 内容副标题 |
| categoryId | string | true | 分类标识,全路径,用’\‘隔开 |
| categoryName | string | true | 全路径,用’\‘隔开 |
| editorId | string | false | 编辑标识 |
| editorName | string | false | 编辑名称 |
| keywords | string | false | 关键词 |
| pageUrl | string | false | 内容的页面地址 |
| description | string | false | 描述 |
| bodyContent | string | false | 文本内容,含html代码,传输时注意编码 |
| copyrightId | string | true | 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示) |
| img | string | true | 图片:json格式 |
| director | string | false | 导演 |
| actors | string | false | 演员 |
| albumName | string | false | 专辑名称 |
| area | string | true | 地区 |
| year | string | true | 年代 |
| createTime | string | true | 创建时间 |
| publishTime | string | true | 发布时间 |
| verTimestamp | string | true | 时间戳版本 |
| weight | string | true | 权重, 取值:0 ~ 100 |
| extension1 | string | true | 扩展字段1 |
| extension2 | string | true | 扩展字段2 |
| extensions | string | true | 扩展字段:json格式 albumPrgCounts:总集数;albumPrgSeqNo: 集号;durationBySec: 时长; rates:视频格式(1:流畅;2:标清;3:高清;4:超清); language:语言 |
返回值
| 参数名 | 参数类型 | 必选 | 参数说明 |
|---|---|---|---|
| errorCode | int | true | 错误类型号 |
| errorMessage | string | true | 错误类型 |
请求JSON格式的节目元数据信息,json示例如下:
{
"uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
"subUuid":"82_17cbfede6f074db18d06fdeb170e41c4",
"groupType":"program",
"contentType":"video",
"spId":"82",
"spName":"视讯中国",
"cpId":"1",
"cpName":"",
"status":"1",
"title":"李雨桐风波后首度亮相心情好",
"subTitle":"李雨桐风波后心情好",
"categoryId":"001/123",
"categoryName":"娱乐/港台",
"editorId":"123",
"editorName":"李四",
"keywords":"刘德华/关之琳",
"pageUrl":"http://www.cnlive.com/yule/1234.html",
"description":"李雨桐风波后首度亮相心情好,风波后首度亮相心情好。",
"bodyContent":"",
"copyrightId":"1",
"director":"冯小刚",
"actors":"葛优",
"albumName":"专题1",
"area":"大陆",
"year":"90",
"createTime":"2017-10-12 11:12:01",
"publishTime":"1998-05-12 09:16:20",
"verTimestamp":"2017-10-12 11:12:01",
"weight":"60",
"extension1":"扩展值1",
"extension2":"扩展值2",
"extensions":{
"albumPrgCounts":"20",
"albumPrgSeqNo":"1",
"durationBySec":"209",
"rates":"1,2",
"language":"汉语"
},
"img":[
{
"format":"316*506",
"url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
},
{
"format":"485*303",
"url":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
}
]
}
返回JSON格式的节目元数据信息,json示例如下:
{
"data":{
"uuid":"17cbfede6f074db18d06fdeb170e41c4",
"title":"一带一路特别节目"
},
"errorCode":0,
"errorMessage":"sucess"
}