I tried to use the documentation indicated here, but unfortunately the example code is really difficult to follow.
For example:
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 >clickCompanies(for my case it is for companies) on the left sidebar.Endpoints for this pagedropdown to select what endpoint do you need. For my case I selectedListof companies under Basic type since there is 2 types of API which is theAssociationand theBasic.