文档中心 > API类目 > 虚拟院线API

taobao.taotv.video.playlist.get (根据频道ID获取频道下节目单以及当前播放)

根据频道ID获取频道下节目单以及当前播放

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
play_list_id Number 可选 1 播单id
system_info String 可选 {"bcp":3,"from":7,"edu_version_code":2100302000,"device":"iphone"} 系统信息

响应参数

名称 类型 示例值 描述
result Result result
  • model_list
  • Model []
  • 数据列表
  • └ pic_url
  • String
  • 视频图片
  • └ video_id
  • String
  • 视频ID
  • └ from
  • Number
  • 3
  • 视频来源
  • └ title
  • String
  • 视频标题
  • └ id
  • Number
  • id
  • └ seconds
  • String
  • 100
  • 时长,单位秒
  • └ ott_update_time
  • Date
  • ott测更新时间
  • └ http_status_code
  • Number
  • httpStatusCode
  • └ msg_code
  • String
  • msgCode
  • └ msg_info
  • String
  • msgInfo
  • └ success
  • Boolean
  • false
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TaotvVideoPlaylistGetRequest req = new TaotvVideoPlaylistGetRequest();
req.setPlayListId(1L);
req.setSystemInfo("{\"bcp\":3,\"from\":7,\"edu_version_code\":2100302000,\"device\":\"iphone\"}");
TaotvVideoPlaylistGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<taotv_video_playlist_get_response>
    <result>
        <model_list>
            <model>
                <pic_url></pic_url>
                <video_id></video_id>
                <from>3</from>
                <title></title>
                <id></id>
                <seconds>100</seconds>
                <ott_update_time></ott_update_time>
            </model>
        </model_list>
        <http_status_code></http_status_code>
        <msg_code></msg_code>
        <msg_info></msg_info>
        <success>false</success>
    </result>
</taotv_video_playlist_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部