Closed zrisher closed 4 years ago
@zrisher : just in case you or someone else is still wondering about this, you can pass results
and page
parameters into the resource methods, e.g.
shippo.carrieraccount.list({ results: 2, page: 2})
(In fact, all the attributes of the argument object get included as URI parameters, even for create
methods. Most of the URL parameters are ignored -- the POST data is what's used for create
s -- but as a kind of side effect, results
and page
parameters are included too and have their intended effect. We should probably clean this up and filter out the unnecessary parameters but keep allowing useful ones like the pagination parameters.)
This should be in the docs somewhere (apologies if I missed it but I don't see it)
Many of the Shippo resources are paginated and respond to the
page
andresults
params to view data past the initial 10. However, only theBatch
resource allows us to specify a page.For example,
carrieraccount.list
returnsDoes this repo provide any way to access data past the first 10 results for any resource besides Batch?