批量查询所有围栏报警信息
GET
/api/v3/fence/batchhistoryalarm
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://yingyan.baidu.com/api/v3/fence/batchhistoryalarm?service_id=127980&start_time=1489420800&end_time=1489424400&ak=&sn='
响应示例响应示例
{
"status": 0,
"total": 2000,
"size": 500,
"message": "成功",
" alarms ": [
{
"fence_id": 1,
"fence_name":"学校",
"monitored_person":"小明",
"action": "exit",
"alarm_point":{
"longitude":116.2333,
"latitude":43.892,
"radius":27,
"loc_time": 1419388604
"create_time": 1419388609
},
"pre_point":{
"longitude":116.2367,
"latitude":43.894,
"radius":28,
"loc_time": 1419388724
"create_time": 1419388729
}
},
{
"fence_id": 1,
"fence_name":" 学校",
"monitored_person":"小明",
"action": "enter",
"alarm_point":{
"longitude":116.2333,
"latitude":43.892,
"radius":12,
"loc_time": 1419387405,
"create_time": 1419387405
},
"pre_point": {
"longitude":116.2367,
"latitude":43.894,
"radius":15,
"loc_time": 1419387465,
"create_time": 1419387465
}
}
]
}
请求参数
Query 参数
service_id
integer
必需
示例值:
127980
start_time
integer
必需
示例值:
1489420800
end_time
integer
必需
示例值:
1489424400
coord_type_output
string
可选
page_index
integer
可选
page_size
integer
可选
ak
string
必需
默认值:
{{ak}}
sn
string
可选
默认值:
{{sn}}
返回响应
修改于 2022-08-22 02:54:38