设备数据接口 ¶
设备列表 ¶
查询商户设备列表
请求
基本 | |
---|---|
HTTP URL | https://macromap.cxkjedu.com/api/open/devices |
HTTP Method | GET |
请求头
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
Content-Type | string | 是 | 固定值:"application/json; charset=utf-8" |
open-token | string | 是 | app_api_token 示例值:"d13fc57d46bac217" 了解更多:获取访问凭证 api_token |
查询参数
该请求无请求参数
请求体
该请求无请求体
请求体示例
$ curl --location --request GET 'https://macromap.cxkjedu.com/api/open/devices' \
--header 'content-type:application/json; charset=utf-8' \
--header 'open-token: d13fc57d46bac217'
响应体
名称 | 类型 | 描述 |
---|---|---|
status | string | 接口状态 SUCCESS 表示成功 |
code | int | 响应代码 200 表示成功 |
msg | string | 错误描述 |
data | data | - |
∟ id | int | 设备 id |
∟ uuid | string | 设识别码 |
∟ name | string | 设备名 |
∟ ip | string | 设备 IP |
∟ data | string | 设备信息 |
∟ created_at | string | 创建时间 |
∟ updated_at | string | 更新时间 |
响应体示例
{
"status": "SUCCESS",
"code": 200,
"data": [
{
"id": 10,
"uuid": "31xxxxxxxxxxxx44",
"name": "ht de IPad",
"ip": "0.0.0.0",
"data": "{\"os\": \"ios\", \"name\": \"ht de IPad\", \"screen\": {\"width\": 818, \"height\": 376}, \"os_version\": 30}",
"created_at": "2022-04-01 07:31",
"updated_at": "2022-06-20 07:53",
},
{
"id": 1,
"uuid": "66xxxxxxxxxxxx9",
"name": null,
"ip": null,
"data": null,
"created_at": "2022-03-24 01:15",
"updated_at": "2022-03-24 01:15",
}
]
}