alibaba.pictures.dengta.component.boxoffice (IOS票房小组件)

提供总票房、今日top 5 影片

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
request_param BoxOfficeIndexRequest 可选 系统自动生成
  • └ city_id
  • Number
  • 可选
  • -5
  • 城市id
  • └ device_id
  • String
  • 可选
  • X7jJ7bKYxfEDAH7qRhTrbfdC
  • 设备编码
  • date_query
  • DateQuery
  • 必须
  • 系统自动生成
  • └ begin_date
  • String
  • 可选
  • 20210112
  • 开始时间
  • └ date_type
  • Number
  • 可选
  • 1
  • 日票房
  • └ end_date
  • String
  • 可选
  • 20210113
  • 结束时间
  • └ utdid
  • String
  • 可选
  • +XtOer9XgUDAFDWJHdfxK7N
  • 设备标识 ID
  • └ version
  • String
  • 可选
  • 客户端版本
  • 5.2.2
  • └ ttid
  • String
  • 可选
  • movie_pro
  • ttid
  • └ client_ip
  • String
  • 可选
  • 192.167.1.1
  • 客户端ip

响应参数

名称 类型 示例值 描述
result PlainResult 返回
  • └ trace_id
  • String
  • trace_id
  • 鹰眼id
  • └ code
  • String
  • hello world
  • 返回码
  • data
  • BoxOfficeIndexVo
  • data
  • 数据
  • show_data_item_v_o_list
  • Showdataitemvolist []
  • 票房和影片
  • box_office_data_item
  • BoxOfficeDataItemVo
  • 票房数据
  • └ box_office
  • Number
  • 20000
  • 今日票房
  • └ schedule_rate
  • String
  • 50
  • 排片占比
  • └ total_box_office
  • Number
  • 40000
  • 总票房
  • total_box_office_with_unit
  • DataWithUnit
  • 4.5万
  • 格式化总后票房
  • └ value
  • String
  • 1.0
  • 数值
  • └ unit
  • String
  • schedule_rate_with_unit
  • DataWithUnit
  • 33%
  • 排片占比
  • └ value
  • String
  • 1.0
  • 数值
  • └ unit
  • String
  • box_office_with_unit
  • DataWithUnit
  • 1.2万
  • 格式化后票房
  • └ value
  • String
  • 1.0
  • 数值
  • └ unit
  • String
  • └ show_name
  • String
  • 送你一朵小红花
  • 影片名称
  • └ show_id
  • Number
  • 333143
  • 影片id
  • └ host_url
  • String
  • http://dengta.com/detail.html?showId=1
  • 影片详情页地址
  • └ box_office
  • Number
  • 20000
  • 今日票房
  • box_office_with_unit
  • DataWithUnit
  • 45万
  • 格式化总后票房
  • └ unit
  • String
  • └ value
  • String
  • 1.0
  • 数值
  • └ latest_refresh_ts
  • Number
  • 123978634
  • 最新时间戳
  • └ show_error
  • Number
  • show_error
  • 展示错误信息
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ error_message
  • String
  • error_message
  • error_message
  • └ message
  • String
  • hello world
  • 消息
  • └ ts
  • Number
  • ts
  • 毫秒数
  • extra
  • Extra
  • 降级属性
  • └ downgrade_message
  • String
  • 暂无数据更新
  • 降级提示语

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPicturesDengtaComponentBoxofficeRequest req = new AlibabaPicturesDengtaComponentBoxofficeRequest();
AlibabaPicturesDengtaComponentBoxofficeRequest.BoxOfficeIndexRequest obj1 = new AlibabaPicturesDengtaComponentBoxofficeRequest.BoxOfficeIndexRequest();
obj1.setCityId(-5L);
obj1.setDeviceId("X7jJ7bKYxfEDAH7qRhTrbfdC");
AlibabaPicturesDengtaComponentBoxofficeRequest.DateQuery obj2 = new AlibabaPicturesDengtaComponentBoxofficeRequest.DateQuery();
obj2.setBeginDate("20210112");
obj2.setDateType(1L);
obj2.setEndDate("20210113");
obj1.setDateQuery(obj2);
obj1.setUtdid("+XtOer9XgUDAFDWJHdfxK7N");
obj1.setVersion("客户端版本");
obj1.setTtid("movie_pro");
obj1.setClientIp("192.167.1.1");
req.setRequestParam(obj1);
AlibabaPicturesDengtaComponentBoxofficeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pictures_dengta_component_boxoffice_response>
    <result>
        <trace_id>trace_id</trace_id>
        <code>hello world</code>
        <data>
            <show_data_item_v_o_list>
                <showdataitemvolist>
                    <box_office_data_item>
                        <box_office>20000</box_office>
                        <schedule_rate>50</schedule_rate>
                        <total_box_office>40000</total_box_office>
                        <total_box_office_with_unit>
                            <value>1.0</value>
                            <unit>元</unit>
                        </total_box_office_with_unit>
                        <schedule_rate_with_unit>
                            <value>1.0</value>
                            <unit>元</unit>
                        </schedule_rate_with_unit>
                        <box_office_with_unit>
                            <value>1.0</value>
                            <unit>元</unit>
                        </box_office_with_unit>
                    </box_office_data_item>
                    <show_name>送你一朵小红花</show_name>
                    <show_id>333143</show_id>
                    <host_url>http://dengta.com/detail.html?showId=1</host_url>
                </showdataitemvolist>
            </show_data_item_v_o_list>
            <box_office>20000</box_office>
            <box_office_with_unit>
                <unit>元</unit>
                <value>1.0</value>
            </box_office_with_unit>
            <latest_refresh_ts>123978634</latest_refresh_ts>
        </data>
        <show_error>show_error</show_error>
        <success>false</success>
        <error_message>error_message</error_message>
        <message>hello world</message>
        <ts>ts</ts>
        <extra>
            <downgrade_message>暂无数据更新</downgrade_message>
        </extra>
    </result>
</alibaba_pictures_dengta_component_boxoffice_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

返回
顶部