PHP code example of fungku / hubspot
1. Go to this page and download the library: Download fungku/hubspot 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/ */
fungku / hubspot example snippets
$hapikey = "demo";
$hubspot = new Fungku\HubSpot($hapikey);
// get 5 contacts' firstnames, offset by 50
$contacts = $hubspot->contacts()->get_all_contacts(array(
'count' => 5, // defaults to 20
'property' => 'firstname', // only get the specified properties
'vidOffset' => '50' // contact offset used for paging
));