smartselling / fapi-client
FAPI API Client
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/smartselling/fapi-client
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2019-02-20 19:47:25 UTC
README
Installation
The recommended way to install is via Composer:
composer require smartselling/fapi-client
Example of use:
$fapi = new FAPIClient('username', 'API token');
$fapi->invoice->getAll(); // returns all invoices
$fapi->invoice->get(123); // returns invoice #123
$fapi->invoice->search(['client' => 123]); // returns invoices of client #123
$fapi->client->searchOne(['email' => 'johndoe@example.com']); // returns client by email
Documentation
You can find API documentation here.