Skip to content
On this page

设备数据接口

设备列表

查询商户设备列表

请求

基本
HTTP URLhttps://macromap.cxkjedu.com/api/open/devices
HTTP MethodGET

请求头

名称类型必填描述
Content-Typestring固定值:"application/json; charset=utf-8"
open-tokenstringapp_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'

响应体

名称类型描述
statusstring接口状态 SUCCESS 表示成功
codeint响应代码 200 表示成功
msgstring错误描述
datadata-
∟ idint设备 id
∟ uuidstring设识别码
∟ namestring设备名
∟ ipstring设备 IP
∟ datastring设备信息
∟ created_atstring创建时间
∟ updated_atstring更新时间

响应体示例

{
    "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",
        }
    ]
}