文档中心 > API类目 > 鸟潮物流API

alibaba.tc.logistics.cfc.device.aoke.apreport (翱柯AP采集温度top接口上报鸟潮)

翱柯AP采集温度top接口上报鸟潮

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ao_ke_temper_report_dto AoKeTemperReportDTO 必须 list上报
  • └ last_seen
  • Number
  • 必须
  • 0
  • 上报时间
  • └ temperature
  • String
  • 必须
  • 与查询服务保持一致
  • 温度
  • └ online
  • Number
  • 可选
  • 0
  • 是否在线
  • └ ap_mac
  • String
  • 可选
  • 与查询服务保持一致
  • ap的mac
  • └ box_number
  • String
  • 可选
  • 与查询服务保持一致
  • 箱码
  • └ sn
  • String
  • 必须
  • 与查询服务保持一致
  • 温度计别名
  • └ battery
  • Number
  • 必须
  • 100
  • 电量百分制
  • └ type
  • String
  • 必须
  • 与查询服务保持一致
  • report:正常上报,fail_retry:失败重试,fail_pool_get:失败池捞取
  • └ mac
  • String
  • 可选
  • 与查询服务保持一致
  • 温度计mac
  • └ ap
  • String
  • 必须
  • 与查询服务保持一致
  • Ap的别名

响应参数

名称 类型 示例值 描述
result DeviceTopResult 结果
  • └ device_code
  • String
  • success/fail/其他错误编码
  • 结果编码
  • └ device_message
  • String
  • success/其他错误描述
  • 结果描述
  • └ success
  • String
  • true/false
  • 结果标识

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTcLogisticsCfcDeviceAokeApreportRequest req = new AlibabaTcLogisticsCfcDeviceAokeApreportRequest();
AlibabaTcLogisticsCfcDeviceAokeApreportRequest.AoKeTemperReportDTO obj1 = new AlibabaTcLogisticsCfcDeviceAokeApreportRequest.AoKeTemperReportDTO();
obj1.setLastSeen(0L);
obj1.setTemperature("与查询服务保持一致");
obj1.setOnline(0L);
obj1.setApMac("与查询服务保持一致");
obj1.setBoxNumber("与查询服务保持一致");
obj1.setSn("与查询服务保持一致");
obj1.setBattery(100L);
obj1.setType("与查询服务保持一致");
obj1.setMac("与查询服务保持一致");
obj1.setAp("与查询服务保持一致");
req.setAoKeTemperReportDto(obj1);
AlibabaTcLogisticsCfcDeviceAokeApreportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tc_logistics_cfc_device_aoke_apreport_response>
    <result>
        <device_code>success/fail/其他错误编码</device_code>
        <device_message>success/其他错误描述</device_message>
        <success>true/false</success>
    </result>
</alibaba_tc_logistics_cfc_device_aoke_apreport_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

返回
顶部