文档中心 > API类目 > 天猫校园共享前端类目

tmall.xiaoyuan.share.isv.campus.device.info.query (isv洗护设备信息查询)

isv洗护设备信息查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
iot_open_simple_device_info_req IotOpenSimpleDeviceInfoReq 可选 外部设备详情查询请求体
  • └ imei
  • String
  • 可选
  • ""
  • 设备imei
  • └ isv
  • String
  • 可选
  • ""
  • 外部身份ISV

响应参数

名称 类型 示例值 描述
result Result result
  • └ msg
  • String
  • -
  • 错误文案
  • └ code
  • String
  • 0
  • 状态码
  • data
  • IotOpenSimpleDeviceInfoResp
  • ISV设备当前信息
  • └ imei
  • String
  • 0
  • 设备imei
  • └ online
  • String
  • online
  • 在线状态(online: 在线,offline:离线)
  • └ phase
  • String
  • 1
  • 当前运行状态(1:空闲 2:运行)
  • └ fault
  • String
  • 0
  • 当前故障key
  • └ fault_desc
  • String
  • -
  • 当前故障文案
  • └ device_name
  • String
  • -
  • 设备名称
  • └ model_code
  • String
  • 0
  • 设备型号code
  • └ device_location
  • String
  • -
  • 设备所在区域,如学校名称
  • └ device_address
  • String
  • -
  • 设备详细地址
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallXiaoyuanShareIsvCampusDeviceInfoQueryRequest req = new TmallXiaoyuanShareIsvCampusDeviceInfoQueryRequest();
TmallXiaoyuanShareIsvCampusDeviceInfoQueryRequest.IotOpenSimpleDeviceInfoReq obj1 = new TmallXiaoyuanShareIsvCampusDeviceInfoQueryRequest.IotOpenSimpleDeviceInfoReq();
obj1.setImei("\"\"");
obj1.setIsv("\"\"");
req.setIotOpenSimpleDeviceInfoReq(obj1);
TmallXiaoyuanShareIsvCampusDeviceInfoQueryResponse 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
<tmall_xiaoyuan_share_isv_campus_device_info_query_response>
    <result>
        <msg>-</msg>
        <code>0</code>
        <data>
            <imei>0</imei>
            <online>online</online>
            <phase>1</phase>
            <fault>0</fault>
            <fault_desc>-</fault_desc>
            <device_name>-</device_name>
            <model_code>0</model_code>
            <device_location>-</device_location>
            <device_address>-</device_address>
        </data>
        <success>true</success>
    </result>
</tmall_xiaoyuan_share_isv_campus_device_info_query_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

返回
顶部