文档中心 > API类目 > 五道口API

taobao.wdk.iot.location.bestapmap.query (查询轨道与最佳Ap对应图)

查询轨道与最佳Ap的对应图。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
warehouse_code String 可选 12 店仓编码

响应参数

名称 类型 示例值 描述
result Result null 接口返回model
  • └ total
  • Number
  • 0
  • 0
  • data
  • LineApMapDto []
  • 1234
  • 返回素材id
  • └ line_id
  • Number
  • 1
  • 线段的Id
  • └ ranges
  • String []
  • [1, 3]
  • 轨道的范围
  • └ ap
  • String
  • bssid
  • ap的bssid
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ err_code
  • String
  • err_code
  • 错误码
  • └ err_msg
  • String
  • err_msg
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WdkIotLocationBestapmapQueryRequest req = new WdkIotLocationBestapmapQueryRequest();
req.setWarehouseCode("12");
WdkIotLocationBestapmapQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wdk_iot_location_bestapmap_query_response>
    <result>
        <total>0</total>
        <data>
            <line_ap_map_dto>
                <line_id>1</line_id>
                <ranges>
                    <string>[1</string>
                    <string>3]</string>
                </ranges>
                <ap>bssid</ap>
            </line_ap_map_dto>
        </data>
        <success>false</success>
        <err_code>err_code</err_code>
        <err_msg>err_msg</err_msg>
    </result>
</wdk_iot_location_bestapmap_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

返回
顶部