接口定义
接口描述 |
获取单个视频 |
接口地址 |
/svc/api3/channel/<channel_web_id> |
接口协议 |
HTTP GET |
HTTP HEADER |
Authorization=<authorization> version=<version> |
请求参数
名称 |
说明 |
数据类型 |
最大长度 |
可空 |
channel_web_id |
视频webid |
String |
100 |
否 |
请求示例
GET /svc/api3/channel/<channel_web_id> HTTP/1.1
Host: svc.suning.com
Content-Type: application/json
Authorization: <authorization>
version: <version>
响应内容
名称 |
数据类型 |
说明 |
id |
Integer |
id |
duration |
Integer |
视频时长(单位:秒) |
vv |
Integer |
有效观看次数 |
is_play |
Integer |
是否可播放 |
category_id |
Integer |
分类id |
user_id |
Integer |
用户id |
channel_name |
String |
视频名称 |
channel_summary |
String |
视频描述 |
cover_image |
String |
封面图片 |
channel_id |
Integer |
视频id |
channel_type |
Integer |
视频类型(1:点播;2:直播) |
create_time |
String |
创建时间 |
channel_web_id |
String |
视频webid |
transcode_status |
Integer |
转码状态(详见 视频转码状态表) |
live_status |
Integer |
直播状态(详见 直播状态表) |
real_duration |
Integer |
视频时长(单位:秒) |
screen_shot |
String |
视频截图(详见 截图地址拼接说明) |
live_start_time |
String |
直播开始时间 |
live_end_time |
String |
直播结束时间 |
time_limit |
Integer |
直播类型(1:限时直播;0:24小时直播) |
live_vod_status |
String |
直转点状态(详见 直转点状态表) |
响应示例
{
"data": {
"id": 106079,
"duration": 0,
"vv": 0,
"is_play": 0,
"category_id": 1191,
"user_id": 594,
"channel_name": "dfgdfg",
"channel_summary": "123",
"cover_image": "",
"channel_id": 156590535,
"channel_type": 2,
"create_time": 1467201517000,
"channel_web_id": "0a2dnqyaqaChnKuL4K2hoqrhoaCima2e",
"transcode_status": 0,
"live_status": "stopped",
"real_duration": 0,
"screen_shot": "http://grocery.pptv.com/lpic/780/2f4/234/d395c06c012b127b5301227384969ff1.jpg",
"live_start_time": 1467202416745,
"live_end_time": 1467201950636,
"time_limit": 1,
"live_vod_status": ""
},
"err": 0,
"msg": "success"
}
