Sample code for interacting with a remote resource that exposes paginated data.