Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 502 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 502 Bytes

FreshBooks SDK

A PHP library for interacting with the FreshBooks API!

Usage

// Initiate an API client with your FreshBooks domain prefix and token.
$apiClient = new \BluehornDigital\FreshBooks\Api('domain', 'profileToken');

// Create an API call
$clientCall = new Clients($apiClient);

// Do something!
$response = $clientCall->query(['username' => 'janedoe']);

$client = $response[0];

// Display client name

print $client->getFirstName() . ' ' . $client->get('last_name');