Hello, Jaycee Thank you for your quick response I have a private app with the above scopes crm.lists.writecrm.lists.readcrm.objects.contacts.readcr...Leia mais
Hello I am using the below python function to fetch all contacts associated with a company def get_associated_contacts(access_token, company_id):
url = f"https://api.hubapi.com/crm/v3/objects/companies{company_id}/associations/contact"
header Leia mais
Hello, I am using the code below to fetch the associated contacts to a company def get_associated_contact_ids(access_token, company_id):
client = HubSpot(access_token=access_token)
try:
api_response = client.crm.associations. Leia mais
Hello I am using python API client to associate a contact with a deal deal_id = de_api_resp["id"]
contact_id = contact_found.id
association = PublicAssociation(
_from=contact_id,
to=deal_id
)
api_client.crm.associations.batch_api.cre Leia mais
Hello I am using the below python function to fetch all contacts associated with a company def get_associated_contacts(access_token, company_id):
url = f"https://api.hubapi.com/crm/v3/objects/companies{company_id}/associations/contact"
header Leia mais
Hello, I am using the code below to fetch the associated contacts to a company def get_associated_contact_ids(access_token, company_id):
client = HubSpot(access_token=access_token)
try:
api_response = client.crm.associations. Leia mais
Hello I am using python API client to associate a contact with a deal deal_id = de_api_resp["id"]
contact_id = contact_found.id
association = PublicAssociation(
_from=contact_id,
to=deal_id
)
api_client.crm.associations.batch_api.cre Leia mais