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 to paginate contacts? #89

Closed
tycooperaow opened this issue Feb 12, 2020 · 1 comment
Closed

How to paginate contacts? #89

tycooperaow opened this issue Feb 12, 2020 · 1 comment

Comments

@tycooperaow
Copy link

When I get the contact list from hub sport it gets them in a large dataset since the project I'm working on has a lot of contacts like over 2000. How do I paginate this?

@api.route("/hubspot/contacts/")
@cross_origin(supports_credentials=True)
def getHubspotContacts():
    """Gets a list of the clients we have in hubspot"""
    API_KEY = "api-key"
    hb_client = Hubspot3(api_key=API_KEY)

    contacts = hb_client.contacts.get_all()
    # display = contacts[range_val:(range_val+20)]
    return jsonify(contacts)
@jpetrucciani
Copy link
Owner

Duplicate of #84

@jpetrucciani jpetrucciani marked this as a duplicate of #84 Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants