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

taobao.wdk.iot.location.apconfig.get (获取ap的配置信息)

小车服务器获取ap配置信息

公共参数

请求参数

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

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • └ total
  • Number
  • 0
  • data
  • ApConfigDto []
  • 列表数据
  • └ ssid
  • String
  • ssid
  • ssid
  • └ ssid_length
  • Number
  • 4
  • ssid的长度
  • └ psk
  • String
  • psk
  • psk
  • └ psk_length
  • Number
  • 3
  • psk的长度
  • └ bssid
  • String
  • bssid
  • bssid
  • └ channel
  • Number
  • 0
  • 信道
  • └ security_model
  • String
  • security_model
  • 安全模式
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ err_code
  • String
  • err_code
  • └ err_msg
  • String
  • err_msg
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WdkIotLocationApconfigGetRequest req = new WdkIotLocationApconfigGetRequest();
req.setWarehouseCode("12");
WdkIotLocationApconfigGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<wdk_iot_location_apconfig_get_response>
    <result>
        <total>0</total>
        <data>
            <ap_config_dto>
                <ssid>ssid</ssid>
                <ssid_length>4</ssid_length>
                <psk>psk</psk>
                <psk_length>3</psk_length>
                <bssid>bssid</bssid>
                <channel>0</channel>
                <security_model>security_model</security_model>
            </ap_config_dto>
        </data>
        <success>false</success>
        <err_code>err_code</err_code>
        <err_msg>err_msg</err_msg>
    </result>
</wdk_iot_location_apconfig_get_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部