-
Notifications
You must be signed in to change notification settings - Fork 5
Implementation Examples
Kobus Myburgh edited this page Oct 29, 2016
·
4 revisions
The following will help you along with implementation:
$client_id = 11111;
$api = new HarvestAPI();
$result = $api->getClient($client_id);
if ($result->isSuccess())
{
$client = $result->data;
}
$client_id = 11111;
$api = new HarvestAPI();
$result = $api->getClientContacts($client_id);
if ($result->isSuccess())
{
$client_contacts = $result->data;
}
$client_id = 11111;
$api = new HarvestAPI();
$filter = new Harvest_Invoice_Filter();
$filter->set("status", Harvest_Invoice_Filter::UNPAID);
$filter->set("client", $client_id);
$result = $api->getInvoices($filter);
if ($result->isSuccess())
{
$client_invoices = $result->data;
}