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

taobao.taotv.carousel.category.list (获取轮播分类列表)

获取轮播分类列表

公共参数

请求参数

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

响应参数

名称 类型 示例值 描述
result Result result
  • model_list
  • Model []
  • 数据列表
  • └ sort
  • Number
  • 分类排序
  • └ pic
  • String
  • 分类图片
  • └ bcp
  • Number
  • 分类牌照方
  • └ name
  • String
  • 分类名称
  • └ id
  • Number
  • 分类ID
  • channel_list
  • Channels []
  • 分类频道列表
  • └ id
  • Number
  • 频道ID
  • └ 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
  • 频道名称
  • └ 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);
TaotvCarouselCategoryListRequest req = new TaotvCarouselCategoryListRequest();
req.setSystemInfo("{\"bcp\":3,\"from\":7,\"edu_version_code\":2100302000,\"device\":\"iphone\"}");
TaotvCarouselCategoryListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<taotv_carousel_category_list_response>
    <result>
        <model_list>
            <model>
                <sort></sort>
                <pic></pic>
                <bcp></bcp>
                <name></name>
                <id></id>
                <channel_list>
                    <channels>
                        <id></id>
                        <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>
                    </channels>
                </channel_list>
            </model>
        </model_list>
        <http_status_code></http_status_code>
        <msg_code></msg_code>
        <msg_info></msg_info>
        <success>false</success>
    </result>
</taotv_carousel_category_list_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

返回
顶部