1.11 获取点播列表接口App.md
3.21 KB
/* Title: 1.1 获取点播信息接口 */
接口描述
接口地址
http://api.cnlive.com/open/api2/vod_epg/getVodListInfo4App
接口协议
HTTP POST
接口请求参数
| 参数名 | 参数类型 | 必选 | 参数说明 |
|---|---|---|---|
| appId | string | true | 格式必须 : spid_xxxxx |
| pageNumber | int | false | 默认1 |
| pageSize | int | false | 默认10 上限100 |
| platform_id | string | true | APP bundleID 或者是包名,平台鉴权使用 |
| timestamp | int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 |
| sign | String | true | 签名规则见 签名详情 |
返回值
| 参数名 | 参数类型 | 必选 | 参数说明 |
|---|---|---|---|
| type | string | true | vod |
| vId | string | true | 编号 |
| title | string | true | 标题 |
| subTitle | string | false | 副标题 |
| category | int | true | 分类,100001 电影,100002 电视剧,100004 娱乐,100008 咨询,100012 体育,100016 教育,100026 其他 |
| img | string | false | 图片 |
| description | string | true | 描述 |
| tag | string | true | 标签,关键字;多个用逗号分隔 |
| rates | string | true | 多个用逗号分隔,流畅1 ;标清2;高清3;超清4 |
返回JSON格式的节目元数据信息,json示例如下:
{
"data": [
{
"type": "vod",
"vId": "ba8729c7f7e04766b3cb81961541c25c",
"img": "http://test.y2017.cnlive.com/82/img/2017/0628/ff8080815c1eae11015ced72b43908c6/00006.jpg@base@tag=imgScale&w=224&h=126&m=2&c=1",
"subTitle": "BEYOND家驹犹在",
"rates": "3,2",
"description": "纪念黄家驹专场公益音乐活动 正在上演 专场",
"tag": "黄家驹,beyond,BEYOND,家驹犹在,纪念黄家驹,音乐,活动,专场",
"title": "BEYOND家驹犹在",
"category": 100004
},
{
"type": "vod",
"vId": "ab6e43b20e3a45429f285acb7e949a52",
"img": "http://test.y2017.cnlive.com/82/img/2017/0623/ff8080815c1eae11015cd31691bd0874/00005.jpg@base@tag=imgScale&w=224&h=126&m=2&c=1",
"subTitle": "最浪荡的文艺片_hd",
"rates": "3,2",
"description": "唐唐神吐槽:最浪荡的文艺片_hd",
"tag": "最浪荡的文艺片,文艺,唐唐",
"title": "最浪荡的文艺片_hd",
"category": 100004
},
{
"type": "vod",
"vId": "94dfbae2c80d46c9953399c55a11d7a2",
"img": "http://test.y2017.cnlive.com/82/img/2017/0622/82_20170622163714.jpg@base@tag=imgScale&w=224&h=126&m=2&c=1",
"subTitle": "《中国推销员》口碑爆棚_片段",
"rates": "3,2",
"description": "《中国推销员》口碑爆棚_片段",
"tag": "中国推销员",
"title": "《中国推销员》口碑爆棚_片段",
"category": 100001
}
],
"errorMessage": "请求成功",
"errorCode": 0
}