Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *args, **kwargs):
"""initialize a contacts client"""
super(ContactsClient, self).__init__(*args, **kwargs)
self.log = get_log("hubspot3.contacts")
def contacts(self):
"""returns a hubspot3 contacts client"""
from hubspot3.contacts import ContactsClient
return ContactsClient(**self.auth, **self.options)
def get_recently_created(self, limit: int = 100):
"""
get recently created contacts
:see: https://developers.hubspot.com/docs/methods/contacts/get_recently_created_contacts
"""
return self._get_recent(ContactsClient.Recency.CREATED, limit=limit)