Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would you paginate the contacts? #84

Open
tycooperaow opened this issue Jan 16, 2020 · 2 comments
Open

How would you paginate the contacts? #84

tycooperaow opened this issue Jan 16, 2020 · 2 comments

Comments

@tycooperaow
Copy link

tycooperaow commented Jan 16, 2020

I am getting the contracts all at once by using
python

hb_client = Hubspot3(api_key=API_KEY)

contacts = hb_client.contacts.get_all()

but I want to be able to paginate this request instead of loading it all in at once. Perhaps 20 at a time. there's no documentation that goes over this.

@jpetrucciani
Copy link
Owner

Currently, there wouldn't be an easy way to paginate that with an existing call. Perhaps we could add an additional method for getting a range of contacts, taking a limit and an offset, so that you could emulate pagination

@jpetrucciani
Copy link
Owner

I haven't had time to look at this yet. I may be able to take a look this weekend or next, but for now, there isn't a way to do this. Feel free to open a PR if you need it sooner

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

No branches or pull requests

2 participants