HubSpot / hubspot-api-ruby

HubSpot API Ruby Client Libraries for V3 version of the API
Apache License 2.0
115 stars 57 forks source link

Associations are broken / don't work as per documentation #358

Open krzypio-jv opened 2 days ago

krzypio-jv commented 2 days ago

Hey

When I tried getting a company and its deals through API call like this: image It works, the docs return a response with deals collection in the company object as expected.

When copying the cURL and running it locally - it works, they are returned.

However, copying THE EXACT SAME ruby code and pasting this in the console returns the company without the deals associated.

Both the docs and the gem seem to be using v3, and I would expect that the docs actually execute real code? Or is it just mocked and the docs assume that the code they show works?

I stepped through the gem code and the associations are in the request correctly, but they are nowhere to be seen in the response? How come? Why is the code in the docs working, but the actual gem is clearly broken when executing the same code as per documentation?