Go to documentation repository
Page History
...
GET http://IP-address:port/web2/secure/events/
Request parameters:
Parameter | Description |
---|---|
from | The oldest date of message search period. 2012-12-27T15%3A19%3A16.000%2B03%3A00 |
to | The latest date of message search period. 2012-12-27T15%3A19%3A16.000%2B03%3A00 |
count | Maximum number of messages in reply [1, 200]. On default – 20. Server can return more messages if there are few messages in the database. |
objectId | Object id (CAM:1, GRAY:5 etc.). If parameter is not specified, events are returning for all. |
Request example:
GET http://127.0.0.1:8085/web2/secure/events?from=2021-05-19T11%3A30%3A3026T14%3A30%3A30.000%2B03%3A00&to=2021-05-19T11%3A40%3A3026T15%3A40%3A30.000%2B03%3A00&count=5&objectId=MACRO:107
Response example:
XML:
Code Block | ||
---|---|---|
| ||
<events> <event> <description>Recording off< <event> <description>Action executed</description> <id> <id>{E56B09A03AED63A0-1A5019BE-E211EB11-840E9020-005056C00008B42E99FDB342}</id> <objectId>CAM:1</objectId> <ts>2012-12-27T15:43:27+04:00</ts> </event> <event> <description>Recording off</description> <id>{4482F63F-1A50-E211-840E-005056C00008}</id> <objectId>CAM:1</objectId> <ts>2012-12-27T15:40:50+04:00</ts> </event> <event> <description>Recording off</description> <id>{35D4BE3E-1750-E211-840E-005056C00008}</id> <objectId>CAM:1</objectId> <ts>2012-12-27T15:19:16+04:00</ts> < <objectId>MACRO:7</objectId> <params0>User 1</params0> <params1>1</params1> <params2/> <params3/> <ts>2021-05-26T14:58:05+03:00</ts> <type>Empty</type> </event> <event> <description>Action executed</description> <id>{26840B9A-19BE-EB11-9020-B42E99FDB342}</id> <objectId>MACRO:7</objectId> <params0>User 1</params0> <params1>1</params1> <params2/> <params3/> <ts>2021-05-26T14:58:04+03:00</ts> <type>Empty</type> </event> </events> |
JSON:
Code Block | ||
---|---|---|
| ||
[ { "id" : "{E56B09A03AED63A0-1A5019BE-E211EB11-840E9020-005056C00008B42E99FDB342}", "description" "objectId": "Recording offMACRO:7", "ts" : "20122021-1205-27T1526T14:4358:2705.000+04:00", "objectId" : "CAM:1" }, { "id" : "{4482F63F-1A50-E211-840E-005056C00008}", "description" : "Recording off", "ts" : "2012-12-27T15:40:50.000+04:00", "objectId" : "CAM:1" }, { "id" : "{35D4BE3E-1750-E211-840E-005056C00008}", "description" : "Recording off", "ts" : "2012-12-27T15:19:16.000+04:00", "objectId" : "CAM:1" } 03:00", "description": "Action executed", "type": "Empty", "params2": "", "params3": "", "params1": "1", "params0": "User 1" }, { "id": "{26840B9A-19BE-EB11-9020-B42E99FDB342}", "objectId": "MACRO:7", "ts": "2021-05-26T14:58:04.000+03:00", "description": "Action executed", "type": "Empty", "params2": "", "params3": "", "params1": "1", "params0": "User 1" } ] |
Return codes:
200 - OK
400 - invalid parameter (e.g. date format)
500 - error
503 - error of core connection
504 - time-out (core failed to return data within 2000 milliseconds)
Overview
Content Tools