Hi, I have a problem while trying to retrieve data from hubspot calls using the api. I understood how to retrieve different properties etc (see my Python code below), but I didn’t quite get how retrieve associations informations (for example the company linked to the call) and especially, how an association type is defined.
from pprint import pprint
import hubspot
from hubspot.crm.objects.calls import ApiException
client = hubspot.Client.create(access_token="token")
try:
api_response = client.crm.objects.calls.basic_api.get_page(
limit=1,
archived=False,
properties=[
"hs_timestamp",
"hs_call_direction",
"hs_call_duration",
"hs_call_disposition",
"hubspot_owner_id",
"hs_call_body",
"hs_call_title"
],
)
pprint(api_response)
except ApiException as e:
print("Exception when calling basic_api->get_page: %s\n" % e)
Thank you for your answers