Use recursiveGet
to query paginated collections (with limit and offset) and get all their items recursively.
Parameters to be added to the query URL. See tlp.get.
Contains:
The number of items to query for each request. Defaults to 100.
The offset from which to start the first request. Defaults to 0.
After each request, recursiveGet
will call this function with a single json
argument containing the response.json()
. The callback must return an [Array] containing the collection of items.
If not provided, the REST Endpoint must return an [Array]. By default response.json()
will be coerced to [Array] using [].concat(json)
.