Fetches all pages of results for the given endpoint and parameters.
The endpoint to fetch.
The initial parameters to use for the endpoint.
Optional
The options to use when making requests.
The maximum number of pages to fetch.
An array of all results.
Fetches all pages of results for the given endpoint and parameters.