I have written as
<?php
require_once 'HarvestAPI.php';
/* Register Auto Loader */
spl_autoload_register(array('HarvestAPI', 'autoload'));
$api = new HarvestAPI();
$api->setUser( "nida.amin@gmail.com" );
$api->setPassword( "aaabbb12345" );
$api->setAccount( "heavenscompany" );
$api->setRetryMode( HarvestAPI::RETRY );
$api->setSSL(true);
$result = $api->getClients();
foreach( $result->data as $client ) {
if( $result->isSuccess() ) {
echo $client->get( "name" );
echo $client->details;
}
}
?>
I am very new to Harvest API. Please help me how to get other contact details of the client like email, mobile no's, office...etc in Harvest API in php?