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

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

根据频道ID获取频道下节目单以及当前播放,包括所有视频源的视频

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
channel_id Number 可选 1 频道ID
system_info String 可选 {"bcp":3,"from":7,"edu_version_code":2100302000,"device":"iphone"} 设备信息

响应参数

名称 类型 示例值 描述
result Result result
  • model
  • CarouselChannelRbo
  • 134523^4351232
  • 返回数据
  • └ serial_number
  • Number
  • 频道固定的编号
  • video_list
  • Videolist []
  • 频道所有的视频列表
  • └ video_id
  • String
  • 视频ID信息
  • └ video_ext_type
  • Number
  • 视频的来源类型,来源这个视频所在节目单的视频来源类型
  • └ play_list_id
  • Number
  • 当前视频的播单ID
  • └ program_id
  • Number
  • 当前视频的节目ID
  • └ sort
  • Number
  • 当前视频的排序
  • └ duration
  • Number
  • 视频时长(单位秒)
  • └ name
  • String
  • 视频名称
  • └ pic
  • String
  • 视频图片
  • └ id
  • Number
  • 主键ID
  • current_video
  • CarouselCurrentPlayRbo
  • 频道当前播放视频
  • video
  • CarouselPlaylistVideoRbo
  • 当前轮播视频信息
  • └ video_id
  • String
  • 视频ID信息
  • └ video_ext_type
  • Number
  • 视频的来源类型,来源这个视频所在节目单的视频来源类型
  • └ play_list_id
  • Number
  • 当前视频的播单ID
  • └ program_id
  • Number
  • 当前视频的节目ID
  • └ sort
  • Number
  • 当前视频的排序
  • └ duration
  • Number
  • 视频时长(单位秒)
  • └ name
  • String
  • 视频名称
  • └ pic
  • String
  • 视频图片
  • └ id
  • Number
  • 主键ID
  • └ point
  • Number
  • 当前视频正在播放的时间点(单位秒)
  • └ description
  • String
  • 频道描述
  • └ bcp
  • Number
  • 牌照方
  • └ pic
  • String
  • 频道图标
  • └ name
  • String
  • 频道名称
  • └ id
  • Number
  • 频道ID
  • └ 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);
TaotvCarouselPlaylistGetRequest req = new TaotvCarouselPlaylistGetRequest();
req.setChannelId(1L);
req.setSystemInfo("{\"bcp\":3,\"from\":7,\"edu_version_code\":2100302000,\"device\":\"iphone\"}");
TaotvCarouselPlaylistGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<taotv_carousel_playlist_get_response>
    <result>
        <model>
            <serial_number></serial_number>
            <video_list>
                <videolist>
                    <video_id></video_id>
                    <video_ext_type></video_ext_type>
                    <play_list_id></play_list_id>
                    <program_id></program_id>
                    <sort></sort>
                    <duration></duration>
                    <name></name>
                    <pic></pic>
                    <id></id>
                </videolist>
            </video_list>
            <current_video>
                <video>
                    <video_id></video_id>
                    <video_ext_type></video_ext_type>
                    <play_list_id></play_list_id>
                    <program_id></program_id>
                    <sort></sort>
                    <duration></duration>
                    <name></name>
                    <pic></pic>
                    <id></id>
                </video>
                <point></point>
            </current_video>
            <description></description>
            <bcp></bcp>
            <pic></pic>
            <name></name>
            <id></id>
        </model>
        <http_status_code></http_status_code>
        <msg_code></msg_code>
        <msg_info></msg_info>
        <success>false</success>
    </result>
</taotv_carousel_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

返回
顶部