Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def deals(self):
"""returns a hubspot3 deals client"""
from hubspot3.deals import DealsClient
return DealsClient(**self.auth, **self.options)
def get_recently_created(
self,
limit: int = 100,
offset: int = 0,
since: int = None,
include_versions: bool = False,
**options
):
"""
get recently created deals
up to the last 30 days or the 10k most recently created records
since: must be a UNIX formatted timestamp in milliseconds
"""
return self._get_recent(
DealsClient.Recency.CREATED,
limit=limit,
offset=offset,
since=since,
include_versions=include_versions,
**options
)
def __init__(self, *args, **kwargs):
super(DealsClient, self).__init__(*args, **kwargs)
self.log = get_log("hubspot3.deals")