3.0 获取分类树接口.md 1.22 KB

/* Title: 3.0 获取分类树接口 */

接口描述

接口地址

http://api.cnlive.com/open/api2/vod_epg/getVodInfo4Server

接口协议

HTTP GET

接口请求参数

参数名 参数类型 必选 参数说明
appId string true 应用ID
spId string false spId,为空时返回全局根分类列表,不为空时返回指定SP下的分类树
sign String true 签名规则见 签名详情

返回值

参数名 参数类型 必选 参数说明
errorCode int true 错误类型号
errorMessage string true 错误类型
categoryId int true 分类Id
categoryName string false 分类名称
parentId int false 父分类Id

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

{
    "data":{
        "categorys": [
            {
            "categoryId": 1000,
            "categoryName": "娱乐",
            "parentId": 0
            },
            {
            "categoryId": 1234,
            "categoryName": "娱乐",
            "parentId": 1000
            }
        ]

    },
    "errorCode":0,
    "errorMessage":"sucess"
}