文档中心 > API类目 > 智慧门店

taobao.smartstore.device.status.feedback (设备在线状态回流)

智能硬件设备状态回流

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
status String 必须 ONLINE_WITH_CONTENT ONLINE_WITH_CONTENT("ONLINE_WITH_CONTENT", "设备在线"), OFFLINE("OFFLINE", "设备断线");
device_code String 必须 4300F03F2B 设备编码
status_time Date 必须 2018-01-01 00:00:00 当前状态的时间

响应参数

名称 类型 示例值 描述
result String true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
SmartstoreDeviceStatusFeedbackRequest req = new SmartstoreDeviceStatusFeedbackRequest();
req.setStatus("ONLINE_WITH_CONTENT");
req.setDeviceCode("4300F03F2B");
req.setStatusTime(StringUtils.parseDateTime("2018-01-01 00:00:00"));
SmartstoreDeviceStatusFeedbackResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<smartstore_device_status_feedback_response>
    <result>true</result>
</smartstore_device_status_feedback_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

返回
顶部