用户绑定/解绑设备同步厂商服务器(APP)
APP
绑定设备同步厂商服务器
POST /device/api/
{ "end_user": "sdfghjk", "product_id": "23456789ihg", "device_id": "tyuiopsdfghj"}
| 参数 |
类型 |
必须 |
说明 |
| end_user |
字符串 |
是 |
用户主键(终端用户id) |
| device_id |
字符串 |
是 |
设备device_id |
| product_id |
字符串 |
是 |
SDS 产品 product_id |
{ "meta": { "code": 0, "message": "insert success" }, "data": { "id": 1, "end_user": "sdfghjk", "product_id": "23456789ihg", "device_id": "tyuiopsdfghj" }}
| 参数 |
类型 |
说明 |
| code |
整型 |
错误码;0代表正确,反之错误 |
| message |
字符串 |
请求消息提示 |
| data |
json |
添加成功的数据 |
解绑设备同步厂商服务器
DELETE /device/api/[device_id]
| 参数 |
类型 |
必须 |
说明 |
| device_id |
字符串 |
是 |
设备 device_id (数字和字符组成) |
{ "meta": { "code": 0, "message": "delete success" }, "data": {}}
| 参数 |
类型 |
说明 |
| code |
整型 |
错误码;0代表正确,反之错误 |
| message |
字符串 |
请求消息提示 |