接口路径(新):http://api.okayapi.com/api/Ouwen000/Device/Report
接口路径(旧):http://api.okayapi.com/?s=Ouwen000.Device.Report
接口描述: 上报设备接口,当设备已经存在则更新其它信息,即当device_sn 序例号存在时则更新,否则创建。【有效期至:2019-03-07】
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
device_name | String | Required | MIN: 1 | 设置名 非空 | |
device_sn | String | Required | MIN: 1 | 序例号 非空(唯一) | |
device_version | String | Optaion | 版本 可空 | ||
device_code | String | Optaion | 设备码 可空 |
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0表示创建成功,1表示更新成功 |
device | Object | 设备的信息 |
device.device_name | String | 设备名 |
device.device_sn | String | 序例号 |
device.device_version | String | 版本 |
device.device_code | String | 设备码 |
Power by OkayAPI.com Contact us (WA: okayapi OR Email: chanzonghuang@gmail.com).
Timezone: America/New_York Mar/28/2024 08:33:42