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):
super(CRMAssociationsClient, self).__init__(*args, **kwargs)
self.log = get_log("hubspot3.crm_associations")
def link_line_item_to_deal(self, line_item_id, deal_id) -> Dict:
"""Link a line item to a deal."""
associations_client = CRMAssociationsClient(**self.credentials)
return associations_client.link_line_item_to_deal(line_item_id, deal_id)
def link_contact_to_company(self, contact_id, company_id):
associations_client = CRMAssociationsClient(**self.credentials)
return associations_client.link_contact_to_company(contact_id, company_id)
def crm_associations(self):
"""returns a hubspot3 crm_associations client"""
from hubspot3.crm_associations import CRMAssociationsClient
return CRMAssociationsClient(**self.auth, **self.options)