Possible to download more than 1000 messages in 1 request?


#1

It would appear there is a hard limit of 1000 for downloading messages using the REST api. For example, executing the following request:

https://dashboard.hologram.io/api/1/csr/rdm?deviceid=1&limit=9999

will only download 1000 messages, even though device 1 has more than 1000 messages available.

Is there an easy way to get all the messages from a device? Or do I have to issue multiple requests?


#2

You have to make multiple requests and page through. If the continues flag on the response is true then you know there is another page to request and you can look at the links section on the response to see what the URL would be to request the next page.
Or can look at the lastid field and you would set startafter=<lastid> on the request.


#3

The continues flag and links section works great for getting everything! Thanks.