coldfrontlabs/freshbooks-api

Library to make requests against the latest Freshbooks API (see https://www.freshbooks.com/api).

Package info

gitlab.com/coldfrontlabs/freshbooks-api

Issues

pkg:composer/coldfrontlabs/freshbooks-api

Statistics

Installs: 1 035

Dependents: 0

Suggesters: 0

Stars: 0

0.1.3 2019-06-10 17:45 UTC

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-2.0-or-later 209e7fb882aed0693c7c8274a70aac5a8f696e2e

  • Luc Morin <lmorin.woop@coldfrontlabs.ca>
  • Mathew Winstone <mwinstone.woop@coldfrontlabs.ca>

This package is auto-updated.

Last update: 2026-06-07 06:56:08 UTC


README

API library for the v2 Freshbooks API (not Freshbooks Classic).

Example usage.

use Freshbooks\Client;


// Create the Client connection and authorize the user.
$freshbooks = Client::create(CLIENT_ID, CLIENT_SECRET, REDIRECT_URL)->authorize();

// Example get the list of clients with a search filter applied.
$freshbooks->clients()->getAll(['search' => ['email' => '123fake@example.com', 'userid' => '12345']]);

// Fetch all the invoices for a specific custom and include the line items.
$freshbooks->invoices()->getAll(['search' => ['customerid' => '54321'], 'include' => ['lines']]);

// Fetch a single estimate by ID.
$freshbooks->estimates()->get('123442');

// Create a new invoice.
$freshbooks->invoices()->create(['invoice' => ['email' => '123fake@example.com', 'customerid' => 12344, 'create_date' => '2018-02-02']]);