注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 飞猪酒店标准库

alitrip.hotel.hstdf.room.static.query (店和房型静态数据反馈 查询)

酒店和房型静态数据反馈 查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
gmt_modified Date 可选 2019-09-01 00:00:00 修改时间
gmt_create Date 可选 2019-09-01 00:00:00 创建时间爱你
tag Number 可选 1 标签
page_size Number 可选 100 分页大小
code String 可选 123 代码
type Number 可选 10 类型
page_index Number 可选 12 页数
id Number 可选 123 id
en_name String 可选 demo 英文名
description String 可选 描述信息 描述
sub_type Number 可选 2 子类型
name String 可选 免费wifi 名称
display_name String 可选 免费wifi 显示名称

响应参数

名称 类型 示例值 描述
result TopResultSet result
  • └ results
  • String []
  • results
  • first_result
  • HotelRoomStaticResult
  • firstResult
  • └ total_count
  • Number
  • 12
  • 总数
  • hotel_room_static_do_list
  • HotelRoomStaticDO []
  • hotelRoomStaticDOList
  • └ gmt_modified
  • Date
  • 1454571926560
  • 修改时间
  • └ last_modify
  • String
  • hwec
  • 最后修改人
  • └ gmt_create
  • Date
  • 1477640726118
  • 创建时间
  • └ status
  • Number
  • 1
  • 状态
  • └ tag
  • Number
  • 395
  • 标签
  • └ code
  • String
  • 413
  • 代码
  • └ type
  • Number
  • 213
  • 类型
  • └ id
  • Number
  • 1088221340
  • id
  • └ parent_id
  • Number
  • 1265580110
  • 父id
  • └ en_name
  • String
  • hwec
  • 英文名
  • └ sub_type
  • Number
  • 56
  • 子类型
  • └ description
  • String
  • 测试123
  • 描述
  • └ priority
  • Number
  • 723
  • 优先级
  • └ name
  • String
  • 免费wifi
  • 名称
  • └ hot
  • Number
  • 582
  • 热度
  • └ display_name
  • String
  • 免费wifi
  • 显示名
  • └ total_results
  • Number
  • 12
  • 总数
  • └ has_next
  • Boolean
  • false
  • 下一条
  • └ error_code
  • String
  • 400
  • 错误码
  • └ warn_message
  • String
  • 参数不能为空
  • 提示信息
  • └ error_msg
  • String
  • 参数错误
  • 错误信息
  • └ results_list
  • String []
  • 结果列表
  • └ success
  • Boolean
  • false
  • 成功标记

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripHotelHstdfRoomStaticQueryRequest req = new AlitripHotelHstdfRoomStaticQueryRequest();
req.setGmtModified(StringUtils.parseDateTime("2019-09-01 00:00:00"));
req.setGmtCreate(StringUtils.parseDateTime("2019-09-01 00:00:00"));
req.setTag(1L);
req.setPageSize(100L);
req.setCode("123");
req.setType(10L);
req.setPageIndex(12L);
req.setId(123L);
req.setEnName("demo");
req.setDescription("描述信息");
req.setSubType(2L);
req.setName("免费wifi");
req.setDisplayName("免费wifi");
AlitripHotelHstdfRoomStaticQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_hotel_hstdf_room_static_query_response>
    <result>
        <results>
            <string></string>
        </results>
        <first_result>
            <total_count>12</total_count>
            <hotel_room_static_do_list>
                <hotel_room_static_d_o>
                    <gmt_modified>1454571926560</gmt_modified>
                    <last_modify>hwec</last_modify>
                    <gmt_create>1477640726118</gmt_create>
                    <status>1</status>
                    <tag>395</tag>
                    <code>413</code>
                    <type>213</type>
                    <id>1088221340</id>
                    <parent_id>1265580110</parent_id>
                    <en_name>hwec</en_name>
                    <sub_type>56</sub_type>
                    <description>测试123</description>
                    <priority>723</priority>
                    <name>免费wifi</name>
                    <hot>582</hot>
                    <display_name>免费wifi</display_name>
                </hotel_room_static_d_o>
            </hotel_room_static_do_list>
        </first_result>
        <total_results>12</total_results>
        <has_next>false</has_next>
        <error_code>400</error_code>
        <warn_message>参数不能为空</warn_message>
        <error_msg>参数错误</error_msg>
        <results_list>
            <string></string>
        </results_list>
        <success>false</success>
    </result>
</alitrip_hotel_hstdf_room_static_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

返回
顶部