Associations API

Hey!

I want to get all my companies’s deals, and to do that, I want to use the Associations API (as stated here :
https://community.hubspot.com/t5/APIs-Integrations/Get-associations-with-deals-from-crm-objects-deals-search/m-p/321104 )

I’m using the Python Hubspot API ( https://github.com/HubSpot/hubspot-api-python ).

And I can’t make it work…

I’ve tried : api_client.crm.associations.batch_api.read(‘company’, ‘deal’), doesn’t work.

It asks for a body but I can’t provide one in the method.

How would you do it?

I appreciate any help provided. Thanks so much!

Hey, @GDelache :waving_hand: One question to help us get started. The thread you linked to is referencing the Search API, but you mentioned trying to use the Associations API. Am I understanding correctly?

Please note, the Search API will allow you to — Search through associations. You can use the pseudo-property associations.{objectType}.

Best,

Jaycee