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

taobao.film.tfseats.data.hall.query (影院关联影厅查询)

根据影院专资办编码查询关联影厅

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_cinema_hall_request QueryCinemaHallRequest 可选 查询影院关联影厅请求
  • └ standard_id
  • String
  • 必须
  • 12345678
  • 八位专资办影院编码

响应参数

名称 类型 示例值 描述
result ResultGeneralModel 系统自动生成
  • return_value
  • QueryCinemaHallResponse
  • 返回值
  • halls
  • CinemaHallSimpleDto []
  • 影院影厅列表
  • └ hall_name
  • String
  • 1号厅
  • 影厅名称
  • └ hall_id
  • String
  • 01
  • 影厅编码
  • └ total
  • Number
  • 6
  • 影院影厅个数
  • └ timestamp
  • Number
  • 1627888706668
  • 时间戳
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ return_code
  • String
  • 0
  • 返回值

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FilmTfseatsDataHallQueryRequest req = new FilmTfseatsDataHallQueryRequest();
FilmTfseatsDataHallQueryRequest.QueryCinemaHallRequest obj1 = new FilmTfseatsDataHallQueryRequest.QueryCinemaHallRequest();
obj1.setStandardId("12345678");
req.setQueryCinemaHallRequest(obj1);
FilmTfseatsDataHallQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<film_tfseats_data_hall_query_response>
    <result>
        <return_value>
            <halls>
                <cinema_hall_simple_dto>
                    <hall_name>1号厅</hall_name>
                    <hall_id>01</hall_id>
                </cinema_hall_simple_dto>
            </halls>
            <total>6</total>
        </return_value>
        <timestamp>1627888706668</timestamp>
        <success>true</success>
        <return_code>0</return_code>
    </result>
</film_tfseats_data_hall_query_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

返回
顶部