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

taobao.taotv.carousel.channel.all (获取所有频道列表)

获取所有频道列表,按照序号升序

公共参数

请求参数

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

响应参数

名称 类型 示例值 描述
result Result result
  • model_list
  • Model []
  • 频道列表
  • └ 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
  • └ switch_time
  • Number
  • 切换时间点
  • └ 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);
TaotvCarouselChannelAllRequest req = new TaotvCarouselChannelAllRequest();
req.setSystemInfo("{\"bcp\":3,\"from\":7,\"edu_version_code\":2100302000,\"device\":\"iphone\"}");
TaotvCarouselChannelAllResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<taotv_carousel_channel_all_response>
    <result>
        <model_list>
            <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>
                <switch_time></switch_time>
            </model>
        </model_list>
        <http_status_code></http_status_code>
        <msg_code></msg_code>
        <msg_info></msg_info>
        <success>false</success>
    </result>
</taotv_carousel_channel_all_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

返回
顶部