检索或停用 Account、Person 或 Device
查询特定 Device
要检索特定 Device,只需发送 GET 请求。返回的结果是该 Device 最新的 JSON 数据。如果该标识符未 与任何对象关联,则返回 HTTP 状态码 404。
GET https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}/device/{device_id}
curl "https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}/device/{device_id}"
-H "Authorization: EXAMPLE-OF-API-KEY"
查询 Device 列表
要检索多个 Device,只需发送 GET 请求。返回的结果是包含某个用户所有 Device 基本信息列表的 JSON。
GET https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}/devices
curl "https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}/devices"
-H "Authorization: EXAMPLE-OF-API-KEY"
停用特定 Device
要停用特定 Device,只需发送 DELETE 请求。如果该标识符未与任何对象关联,则返回 HTTP 状态码 404。Device 停用后将无法再被验证。
DELETE https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}/device/{device_id}
curl -X DELETE "https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}/device/{device_id}" \
-H "Authorization: EXAMPLE-OF-API-KEY"
查询特定账户
通过标识符检索账户数据。返回账户详情,如不存在则返回 404。
GET https://api.caas.qitech.app/device_manager/account/{account_id}
curl "https://api.caas.qitech.app/device_manager/account/{account_id}" \
-H "Authorization: EXAMPLE-OF-API-KEY"
查询特定人员
检索账户中特定人员的数据。返回该人员的最新数据,如不存在则返回 404。
GET https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}
curl "https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}" \
-H "Authorization: EXAMPLE-OF-API-KEY"
停用账户
停用一个账户。停用后,该账户将无法再用于注册或验证设备。
DELETE https://api.caas.qitech.app/device_manager/account/{account_id}
curl -X DELETE "https://api.caas.qitech.app/device_manager/account/{account_id}" \
-H "Authorization: EXAMPLE-OF-API-KEY"
停用人员
停用账户中的一个人员。停用后,该人员将无法再注册或验证设备。
DELETE https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}
curl -X DELETE "https://api.caas.qitech.app/device_manager/account/{account_id}/person/{person_id}" \
-H "Authorization: EXAMPLE-OF-API-KEY"