Closed sionide21 closed 7 years ago
The way this example was written, I thought the last_response method was updated with each get call such that I could get multiple pages as follows:
last_response
get
errors = Bugsnag::Api.errors("project-id", per_page: 100) errors.concat Bugsnag::Api.last_response.rels[:next].get.data errors.concat Bugsnag::Api.last_response.rels[:next].get.data errors.concat Bugsnag::Api.last_response.rels[:next].get.data ...
This turns out to simply load the same page over and over.
Hopefully this new example makes it clear how to get pages 3 and up.
thanks @sionide21!
The way this example was written, I thought the
last_response
method was updated with eachget
call such that I could get multiple pages as follows:This turns out to simply load the same page over and over.
Hopefully this new example makes it clear how to get pages 3 and up.