I was able to get an access token working with oauth, but the end point limits the maximum records per request to 100.
I need to get more than that, and am wondering if there is a simple/common way to do this?
I’d like to keep making requests until I get all the records. For example:
@products = JSON.parse(@access_token.get("/api/rest/products?page=#{@n}&limit=100").body)
I may need 10,000+ of the products. Is this possible?
Assuming @products is an array of products you should be able to do this
If you don’t know exactly how many pages or products there are, unless the api provide you that, you can do something like this to stop fetching when there are no more products.