PHP code example of iceithq / accounting-php-client
1. Go to this page and download the library: Download iceithq/accounting-php-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
iceithq / accounting-php-client example snippets
ceithq\Accounting\AccountingClient;
// Initialize client
$client = new AccountingClient('https://accounting.iceithq.com', 'your-api-key');
$response = $client->login('your_username', 'your_password');
$token = $response->token;
// Fetch customers
$customers = $client->get_customers($token);
print_r($customers);
// Fetch companies
$companies = $client->get_companies($token);
print_r($companies);
bash
composer