ZAutomation API notifications since timestamp ignored
Posted: 05 Jun 2018 02:04
Hi I am trying to use the ZAutomation notifications REST end point with a "since" timestamp query parameter.
I have a RazBerry board and firmware version 2.3.7.
"GET /ZAutomation/api/v1/notifications" works fine and returns about 1950 notifications.
"GET /ZAUtomation/api/v1/notifications?since=1528128000" seems to ignore the "since" query string parameter and returns the exact some number of notifications, including all notifications with timestamps prior to "since" parameter. The "since" parameter has no effect, whatever value is used in the request.
Has anyone successfully retrieved a limited number of notifications with the "since" query string parameter, or is this REST end point buggy ?
Looking forward to any comments or suggestions !
I have a RazBerry board and firmware version 2.3.7.
"GET /ZAutomation/api/v1/notifications" works fine and returns about 1950 notifications.
"GET /ZAUtomation/api/v1/notifications?since=1528128000" seems to ignore the "since" query string parameter and returns the exact some number of notifications, including all notifications with timestamps prior to "since" parameter. The "since" parameter has no effect, whatever value is used in the request.
Has anyone successfully retrieved a limited number of notifications with the "since" query string parameter, or is this REST end point buggy ?
Looking forward to any comments or suggestions !