Skip to content

查询设备事件记录

POST
/device/query_record

分页查询设备的事件记录

请求体

application/json
JSON
{
  
"message_id": "1bd5d003-31b9-476f-ad03-71d471922820",
  
"user_id": "53102fb4bf1044ed8b0ba36c",
  
"params": {
  
  
"access_token": "string",
  
  
"user_id": "string",
  
  
"query_model": 0,
  
  
"page_no": 0,
  
  
"page_size": 0,
  
  
"start": 0,
  
  
"end": 0,
  
  
"device_id": "string",
  
  
"user_id_param": "string",
  
  
"event_type": 0
  
}
}

响应

查询成功

application/json
JSON
{
  
"error_code": 200,
  
"message_id": "1bd5d003-31b9-476f-ad03-71d471922820",
  
"data": {
  
  
"total": 0,
  
  
"page_no": 0,
  
  
"page_size": 0,
  
  
"events_list": [
  
  
  
{
  
  
  
  
"device_id": "string",
  
  
  
  
"user_id": "string",
  
  
  
  
"event_id": "string",
  
  
  
  
"event_type": 0,
  
  
  
  
"properties": {
  
  
  
  
},
  
  
  
  
"code": "string",
  
  
  
  
"gmt_create": "string"
  
  
  
}
  
  
]
  
}
}

试验场

主体

示例