1.1.5 内容云入库接口_video_chinaorg.md 6.43 KB

/* Title: 1.1 内容云入库接口: 内容库云同步内容接口 */

接口描述

接口地址 http://cbase.cnlive.com/nry/add/cms

接口协议

HTTP POST

接口请求参数

参数名 参数类型 必选 参数说明
appId string true 应用ID
timestamp int true 精确到秒,当前Unix时间戳,请保证请求服务器时间正确,该时间用于签名
sign String true 签名规则见 签名详情
source string true 来源
jsonData string true json 格式参数,属性如下所示

jsonData 参数说明

参数名 参数类型 必选 参数说明
uuid string true 内容标识, 确保SP下,此内容ID唯一,不允许含有下划线
subUuid string false 附属内容标识, 主要用于富文本的vtxt而言,即用此参数来区别
groupType string true 组类型:program、richtxt等 ,内容分组:节目(来源于媒资库)、富文本(来自CMS或图片库等)
contentType string true 内容类型:video、live、audio等 ,
内容类型(需要设计6个小的icon,便于内容结果展示的标示):
节目分下含:video(默认1)、live、audio
富文本含:article(默认0)、vtxt、spectxt、picstxt
注意:某节目可能被检索2次,即一个video类型,一个vtxt类型。
cpId string true cp标识
cpName string true
status string true 上线状态, 1=上线,0下线
title string true 内容标题
subTitle string true 内容副标题
categoryId string true 分类标识,全路径,用’/‘隔开
categoryName string true 全路径,用’/‘隔开
editorId string true 编辑标识
editorName string true 编辑名称
keywords string true 关键词
pageUrl string false 内容的页面地址
description string true 描述
bodyContent string false 文本内容,含html代码,传输时注意编码
copyrightId string true 版权标识,唯一标示,来自 统一的 内容版权管理系统(建议暂时editorid来标示)
img string true 图片:
groupImg map false 组图图片信息,仅对组图内容有效
director string false 导演
actors string false 演员
albumId string false 专辑ID
albumName string false 专辑名称
area string true 地区
year string true 年代
createTime string true 创建时间 2017-08-03 14:58:31
publishTime string true 发布时间 2017-08-03 14:58:31
verTimestamp long true unix时间戳版本
weight string true 权重, 取值:0 ~ 100
location string true 地点
columnTagId string false 栏目标签ID
columnTagName string false 栏目标签名称
extension1 string true 扩展字段1
extension2 string true 扩展字段2
extensions string true 扩展字段:json格式

返回值

参数名 参数类型 必选 参数说明
errorCode int true 错误类型号
errorMessage string true 错误类型

请求JSON格式的节目元数据信息,jsonParam示例如下:

{
    "uuid":"82_17cbfede6f074db18d06fdeb170e41c4",
    "groupType":"program",
    "contentType":"video",
    "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",
    "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":{
        "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",
        }
    ],
    "groupImg":[
        {
            "imgInfo":[
                {
                  "format": "224*126",
                  "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/224/h/126"
                },
                {
                  "format": "640*320",
                  "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/224/h/126"
                }
            ]
            "desc": ""
        },
        {
            "imgInfo":[
                {
                  "format": "224*126",
                  "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/224/h/126"
                },
                {
                  "format": "640*320",
                  "url": "http://y2017.qn.cnliveimg.com/60/img/2017/0818/ff8080815def9dcb015df428048800e6/000006.jpg?imageView2/1/w/224/h/126"
                }
            ]
            "desc": ""
        }
    ]
}

返回JSON格式的节目元数据信息,json示例如下:

{
    "data":{
        "uuid":"17cbfede6f074db18d06fdeb170e41c4",
        "title":"一带一路特别节目"
    },
    "errorCode":0,
    "errorMessage":"sucess"
}