Closed bitfield closed 5 years ago
I think I have a working solution here, for get monitors:
https://github.com/bitfield/uptimerobot/compare/master...lumberj:pagination?expand=1
Changing this issue to just require pagination for monitors. There are probably a lot more monitors than there are alert contacts! If anyone wants pagination for alert contacts too, they're welcome to open an issue for it (and we can use the same machinery).
The UptimeRobot API paginates responses to
getMonitors
andgetAlertContacts
, sending (I think) 50 items at a time. The library needs to handle this and return all results (currently it returns only the first page of results).