文档中心 > API类目 > 电影票API

taobao.film.vivocard.get (vivo负一屏card接入)

vivo负一屏card接入我们淘票票热映影片信息,为我们导流

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
request_param GetHotShowsRequest 可选 入参
  • └ platform
  • Number
  • 必须
  • 2
  • 平台
  • └ page_size
  • Number
  • 必须
  • 3
  • 分页大小
  • └ appkey
  • String
  • 必须
  • 2019
  • appkey
  • └ longitude
  • String
  • 必须
  • 116.46
  • 经度
  • └ latitude
  • String
  • 必须
  • 39.92
  • 纬度
  • └ page_index
  • Number
  • 必须
  • 1
  • 页码
  • └ page_code
  • String
  • 可选
  • vivo
  • pageCode
  • └ city_code
  • Number
  • 可选
  • 310100
  • 城市码

响应参数

名称 类型 示例值 描述
result GetHotShowsResult result 热映影片出参
  • └ timestamp
  • Number
  • 1545795077286
  • 时间戳
  • └ result_msg
  • String
  • success
  • 返回信息
  • └ alipay_show_list_h5_url
  • String
  • 支付宝跳转
  • 支付宝跳转
  • └ result_code
  • String
  • demo
  • 返回结果码
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ show_list_h5_url
  • String
  • H5跳转
  • H5跳转
  • hot_shows
  • Show []
  • []
  • 影片列表
  • └ id
  • Number
  • 1001
  • 影片ID
  • └ show_name
  • String
  • 战狼
  • 影片名
  • └ remark
  • String
  • 8.8
  • 评分
  • └ show_name_en
  • String
  • wolf
  • 英文名
  • └ type
  • String
  • 动作
  • 影片类型
  • └ support_type
  • String
  • SEAT
  • 支持类型。(在线选座等)
  • └ description
  • String
  • demo
  • 简介
  • └ director
  • String
  • 吴京
  • 导演
  • └ low_price
  • Number
  • 100
  • 影片兑换券对应的最低价格。单位 “分”
  • └ min_seat_price
  • Number
  • 100
  • 最低座位价格
  • └ country
  • String
  • 中国
  • 国家
  • └ flag
  • Number
  • 热门
  • 影片标:热门影片
  • └ background_picture
  • String
  • jpg
  • 背景图片
  • └ price
  • Number
  • 100
  • 额外记录影片价格,一般来源于场次。单位 “分”
  • └ poster
  • String
  • jpg
  • 海报
  • └ language
  • String
  • 中文
  • 语言
  • └ want_count
  • Number
  • 10000
  • 想看人数
  • └ open_day
  • Date
  • 2018
  • 上映日期
  • └ duration
  • Number
  • 100
  • 时长
  • └ fantastic
  • String
  • 1
  • TOTAL_BOX_OFFICE(1<<0,"总票房最高"), TODAY_BOX_OFFICE(1<<1, "实时票房最高"), HIGHEST_REMARK(1<<2,"评分最高"), INTERNAL_RECOMMEND(1<<3, "特别推荐");
  • └ open_time
  • String
  • 2015
  • 上映时间
  • └ pre_schedule_dates
  • String []
  • 1458473640
  • 点映日期
  • └ sold_type
  • String
  • NORMAL
  • 售卖类型
  • score_and_favor
  • ScoreAndFavor
  • 评分想看
  • 评分想看
  • └ favor_count
  • Number
  • 10000
  • 想看数
  • └ favor_count_desc
  • String
  • 1w人想看
  • 想看数描述
  • score
  • ScoreDetail
  • 评分
  • 评分
  • └ score_type
  • Number
  • 1
  • 正式评分
  • └ score_name
  • String
  • 淘票票评分
  • 评分名称
  • └ score_count
  • Number
  • 10000
  • 评分人数
  • └ score_count_desc
  • String
  • 1w人评分
  • 评分人数描述
  • └ score
  • String
  • 8.8
  • 评分
  • └ leading_role
  • String
  • 吴京
  • 主演
  • └ show_mark
  • String
  • 3D
  • (IMAX 3D>巨幕3D>IMAX>巨幕>4D>3D)
  • └ show_version_list
  • String []
  • ["hello","world"]
  • 影片版本,例:2D
  • └ remark_count
  • Number
  • 1000
  • 评分人数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FilmVivocardGetRequest req = new FilmVivocardGetRequest();
FilmVivocardGetRequest.GetHotShowsRequest obj1 = new FilmVivocardGetRequest.GetHotShowsRequest();
obj1.setPlatform(2L);
obj1.setPageSize(3L);
obj1.setAppkey("2019");
obj1.setLongitude("116.46");
obj1.setLatitude("39.92");
obj1.setPageIndex(1L);
obj1.setPageCode("vivo");
obj1.setCityCode(310100L);
req.setRequestParam(obj1);
FilmVivocardGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<film_vivocard_get_response>
    <result>
        <timestamp>1545795077286</timestamp>
        <result_msg>success</result_msg>
        <alipay_show_list_h5_url>支付宝跳转</alipay_show_list_h5_url>
        <result_code>demo</result_code>
        <success>false</success>
        <show_list_h5_url>H5跳转</show_list_h5_url>
        <hot_shows>
            <show>
                <id>1001</id>
                <show_name>战狼</show_name>
                <remark>8.8</remark>
                <show_name_en>wolf</show_name_en>
                <type>动作</type>
                <support_type>SEAT</support_type>
                <description>demo</description>
                <director>吴京</director>
                <low_price>100</low_price>
                <min_seat_price>100</min_seat_price>
                <country>中国</country>
                <flag>热门</flag>
                <background_picture>jpg</background_picture>
                <price>100</price>
                <poster>jpg</poster>
                <language>中文</language>
                <want_count>10000</want_count>
                <open_day>2018</open_day>
                <duration>100</duration>
                <fantastic>1</fantastic>
                <open_time>2015</open_time>
                <pre_schedule_dates>
                    <string>1458473640</string>
                </pre_schedule_dates>
                <sold_type>NORMAL</sold_type>
                <score_and_favor>
                    <favor_count>10000</favor_count>
                    <favor_count_desc>1w人想看</favor_count_desc>
                    <score>
                        <score_type>1</score_type>
                        <score_name>淘票票评分</score_name>
                        <score_count>10000</score_count>
                        <score_count_desc>1w人评分</score_count_desc>
                        <score>8.8</score>
                    </score>
                </score_and_favor>
                <leading_role>吴京</leading_role>
                <show_mark>3D</show_mark>
                <show_version_list>
                    <string>[&quot;hello&quot;</string>
                    <string>&quot;world&quot;]</string>
                </show_version_list>
                <remark_count>1000</remark_count>
            </show>
        </hot_shows>
    </result>
</film_vivocard_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

返回
顶部