Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

pagination #37

Closed
cfullerton opened this issue Apr 19, 2018 · 1 comment
Closed

pagination #37

cfullerton opened this issue Apr 19, 2018 · 1 comment

Comments

@cfullerton
Copy link

does this wrapper support pagination?

@terinjokes
Copy link
Contributor

terinjokes commented Apr 23, 2018

@cfullerton You can increment pages when making requests, but this library doesn't attempt to paginate automatically. There are a few libraries on npm that allow you to wrap your calls for pagination.

(A previous version of the library did attempt automatic pagination, but it didn't work out very well, was very complex, and was scraped)

For example, to load the second page of a domain's DNS records:

cf.dnsRecords.browse('023e105f4ecef8ad9ca31a8372d0c353', {
	page: 2,
	per_page: 100
});

Unfortunately, this isn't documented due to a bug in the generated docs, but I'll add it as soon as the bug is resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants