Geting Notifications data
Example:
https://<address>/api/api.php?cmd=notifications
Parameters:
cmd : notifications
ts: start time
te: stop time
notification: name of notification from Notification Module
Request:
https://p<address>/api/api.php?cmd=notifications&ts=1606942800&te=1607115600¬ification=test
Answer:
{
"code": 0,
"msg": "OK",
"data": [
{
"vehiclenumber": "PS2",
"agentid": 109792,
"message": "Speed > 10 km/h longer than 10 ss max speed=52km/h Duration: 42 sec",
"ts": 1606988609
},
{
"vehiclenumber": "PS2",
"agentid": 109792,
"message": "Speed > 10 km/h longer than 10 ss max speed=29km/h Duration: 12 sec",
"ts": 1606988438
},
{
"vehiclenumber": "PS2",
"agentid": 109792,
"message": "Speed > 10 km/h longer than 10 ss max speed=17km/h Duration: 13 sec",
"ts": 1606988106
}
],
"id": 3701
}