If you’re writing an SDK, don’t include a section on how to fetch all the pages of chunked results. That’s your job, not theirs. Make that the default interface and provide advanced methods to fetch a page at a time if your user specifically needs to for whatever reason.
Don’t make users write this:
all_results = []
results = sdk.get_items()
all_results.extend(results.items)
while results.has_more:
results = sdk.get_more_items(results.next)
all_results.extend(results.items)
Let them write this:
all_results = sdk.get_all_items()
Looking at you, AWS and Dropbox.