2.0 获取分类树接口.md
1.31 KB
/* Title: 3.0 获取分类树接口 */
接口描述
根分类是常量,共有7个,每个SP都有,分别如下:电影100001电视剧100002;娱乐100004;资讯100008;体育100012;教育100016;其他100026
接口地址
http://api.cnlive.com/open/api2/...
接口协议
HTTP GET
接口请求参数
| 参数名 | 参数类型 | 必选 | 参数说明 |
|---|---|---|---|
| appId | string | true | 应用ID |
| spId | string | true | 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"
}