Function that fetches the first page of results
Function that fetches subsequent pages given a next_href URL
Optionaloptions: { maxItems?: number }Optional configuration
OptionalmaxItems?: numberMaximum number of items to collect (defaults to all)
A promise that resolves to a flat array of all collected items
Collects all pages into a single flat array, with an optional maximum item limit.