I tried to use the documentation indicated here, but unfortunately the example code is really difficult to follow.
The code from the image above returns 400
error. However, if I tried the one from the repo it works. Like so:
$response = $hubspot->crm()->companies()->basicApi()->getPage();
The toObjectType
does not have description on how to use it too. Maybe there is a separate documentation?
Any idea with this?
Just for future reference, don't get mad at me.
Objects >
click Companies
(for my case it is for companies) on the left sidebar.Endpoints for this page
dropdown to select what endpoint do you need. For my case I selected List
of companies under Basic type since there is 2 types of API which is the Association
and the Basic
.