Create an event with timestamp.
URI | /nodeEvent/create/{nodeKey}/{event} |
Method | GET |
nodeKey |
The node key |
event |
The event name (maximum 32 characters) |
200 |
The valuevalue |
403 |
Node not found by key |
Retrieve the last 100 events order by creation timestamp descending.
URI | /nodeEvent/list/{nodeShortId} |
Method | GET |
nodeKey |
The node key |
key |
The value key |
Access token (optional) | Authorization: Bearer eyJhbGciO ... _K74HRzwg |
200 |
The list of events[ { "nodeId":"d6102670-d5e1-11e7-942c-f138c28ad955", "nodeShortId":"lCzxOMKK2VXWECZw1eER5w", "created":1590931792372, "deviceId":"61c707f0-46c7-11e8-a240-7bca10e5bd5b", "deviceShortId":"okB7yhDlvVthxwfwRscR6A", "type":"eventOff", "userId":"4ca6ff41-4408-11e8-94bd-3dd310e71935", "userShortId":"lL090xDnGTVMpv9BRAgR6A" }, { "nodeId":"d6102670-d5e1-11e7-942c-f138c28ad955", "nodeShortId":"lCzxOMKK2VXWECZw1eER5w", "created":1590931779278, "deviceId":"61c707f0-46c7-11e8-a240-7bca10e5bd5b", "deviceShortId":"okB7yhDlvVthxwfwRscR6A", "type":"eventOn", "userId":"4ca6ff41-4408-11e8-94bd-3dd310e71935", "userShortId":"lL090xDnGTVMpv9BRAgR6A" } ] |
403 |
Node not found by short id, not visible or the credential is invalid |