事件数据分页查询
本地
本地
GET
http://127.0.0.1:9999/api/v1/event/datas
事件数据
请求参数
Query 参数
device_id
string
设备ID
identify
string
数据标识符
page
integer
页码
page_size
integer
每页数量
Header 参数
x-token
string
可选
默认值:
{{x-token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9999/api/v1/event/datas?device_id=&identify=&page=&page_size=' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
count
integer
必需
list
array [object {7}]
必需
示例
{
"code": 200,
"message": "Get list successfully",
"data": {
"count": 100,
"list": [
{
"id": "1",
"device_id": "yanhao",
"identify": "Ml9rRreHDb",
"ts": "2017-07-24T15:13:58Z",
"data": "{\"key71\": 5, \"key1745\": 8989, \"key4\": 70, \"key9\": 302}",
"tenant_id": null
},
{
"id": "2",
"device_id": "yanhao",
"identify": "aaxljRKjUX",
"ts": "2011-07-14T15:52:35Z",
"data": "{\"key2981\": 57, \"key7\": 7695}",
"tenant_id": null
}
]
}
}
修改于 2025-03-25 02:06:47