How to paginate contacts?
tycooperaow opened this issue · 1 comments
tycooperaow commented
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 commented
Duplicate of #84