1. Go to this page and download the library: Download hubspot/api-client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
[
'method' => string, // Http method (e.g.: GET, POST, etc). Default value GET
'path' => string, // URL path (e.g.: '/crm/v3/objects/contacts'). Optional
'headers' => array, // Http headers. Optional.
'body' => mixed, // Request body (if defaultJson set body will be transforted to json string).Optional.
'authType' => enum(none, accessToken, hapikey, developerApiKey), // Auth type. if it isn't set it will use accessToken or hapikey. Default value is non empty auth type.
'baseUrl' => string, // Base URL. Default value 'https://api.hubapi.com'.
'qs' => array, // Query parameters. Optional.
'defaultJson' => bool, // Default Json. if it is set to true it add to headers [ 'Content-Type' => 'application/json', 'Accept' => 'application/json, */*;q=0.8',]
// and transfort body to json string. Default value true
];