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

alibaba.decoration.content.aggquery (千机岛-内容根据省/市/小区/户型数据统计)

千机岛-内容根据省/市/小区/户型数据统计

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
owner_type Number 必须 2
  • 默认值:2
  • 业务归属 1:佳装 2:线下工作台
    param ContentAggReq 必须 查询参数
    • └ outer_store_id
    • String
    • 必须
    • 342524354235
    • 外部门店id
    • └ province_code
    • Number
    • 可选
    • 310000
    • 省code
    • └ city_code
    • Number
    • 可选
    • 310100
    • 市code
    • └ district_code
    • Number
    • 可选
    • 310101
    • 区code
    • └ poi_id
    • String
    • 可选
    • B00155KUM0
    • 小区id
    • └ house_type_id
    • String
    • 可选
    • 60288324-1d57-4a57-9246-63b63f07b487
    • 户型id
    • └ agg_type
    • String
    • 必须
    • city_code
    • 聚合条件

    响应参数

    名称 类型 示例值 描述
    result Result result
    • └ message_flag
    • Boolean
    • true
    • 成功
    • └ message_code
    • Number
    • 100399999
    • 返回错误码
    • └ message_info
    • String
    • 程序发生异常
    • 错误message
    • data
    • ContentAggResp
    • 返回结果
    • content_count_list
    • ContentCount []
    • 统计list
    • └ code
    • String
    • 234324
    • 城市/小区/户型code
    • └ name
    • String
    • name
    • 城市/小区/户型name
    • └ count
    • Number
    • 123
    • 统计个数
    • └ agg_type
    • String
    • city_code
    • 统计类型

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaDecorationContentAggqueryRequest req = new AlibabaDecorationContentAggqueryRequest();
    req.setOwnerType(2L);
    AlibabaDecorationContentAggqueryRequest.ContentAggReq obj1 = new AlibabaDecorationContentAggqueryRequest.ContentAggReq();
    obj1.setOuterStoreId("342524354235");
    obj1.setProvinceCode(310000L);
    obj1.setCityCode(310100L);
    obj1.setDistrictCode(310101L);
    obj1.setPoiId("B00155KUM0");
    obj1.setHouseTypeId("60288324-1d57-4a57-9246-63b63f07b487");
    obj1.setAggType("city_code");
    req.setParam(obj1);
    AlibabaDecorationContentAggqueryResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_decoration_content_aggquery_response>
        <result>
            <message_flag>true</message_flag>
            <message_code>100399999</message_code>
            <message_info>程序发生异常</message_info>
            <data>
                <content_count_list>
                    <content_count>
                        <code>234324</code>
                        <name>name</name>
                        <count>123</count>
                    </content_count>
                </content_count_list>
                <agg_type>city_code</agg_type>
            </data>
        </result>
    </alibaba_decoration_content_aggquery_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

    返回
    顶部