APIs & Integrations

pembo13
Member

Accessing meetings for company

SOLVE

I'm trying to use the Python SDK to get all meetings for a company.

 

This is the code I used:

api_response = client.crm.companies.associations_api.get_all(
	company_id=companyid,
	to_object_type='meeting',
	limit=500
)

However, the output I get is odd:

{'paging': None,
 'results': [{'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None}]}

I get the same out when I try a deal instead:

api_response = client.crm.companies.associations_api.get_all(
	company_id=companyid,
	to_object_type='deal',
	limit=500
)

I'm getting no errors.

 

If I change from "meeting" to "engagement" I get more out, but still al None.

0 Upvotes
1 Accepted solution
pembo13
Solution
Member

Accessing meetings for company

SOLVE

Looks like the Python SDK was simply broken, and fixed an issue with the Association API in a later version: https://github.com/HubSpot/hubspot-api-python/blob/master/CHANGELOG.md

View solution in original post

0 Upvotes
6 Replies 6
pembo13
Member

Accessing meetings for company

SOLVE
response = client.crm.associations.v4.basic_api.get_page(
	object_type='company',
	object_id=company_id,
	to_object_type='meeting',
	limit=500
)
0 Upvotes
pembo13
Solution
Member

Accessing meetings for company

SOLVE

Looks like the Python SDK was simply broken, and fixed an issue with the Association API in a later version: https://github.com/HubSpot/hubspot-api-python/blob/master/CHANGELOG.md

0 Upvotes
pembo13
Member

Accessing meetings for company

SOLVE

Any help on this would be appreciated.

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Accessing meetings for company

SOLVE

Hi, @pembo13 👋 Is this issue persisting for you? If so, I am happy to tag in a few community members.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
pembo13
Member

Accessing meetings for company

SOLVE

@Jaycee_Lewis  any luck tagging anyone else on this?

0 Upvotes
pembo13
Member

Accessing meetings for company

SOLVE

@Jaycee_Lewisthis still an issue. I'd love some help with it please.

0 Upvotes