PHP code example of chrisjohnleah / bigchange-api-laravel
1. Go to this page and download the library: Download chrisjohnleah/bigchange-api-laravel 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/ */
chrisjohnleah / bigchange-api-laravel example snippets
use ChrisJohnLeah\BigChangeLaravel\Facades\BigChange;
$client = BigChange::client([
'client_id' => $clientId,
'client_secret' => $clientSecret,
'customer_id' => $customerId,
]);
$jobs = $client->jobs(pageSize: 1000);
$assets = $client->assetManagementClient()->assets(pageSize: 2000);
$jobWatch = BigChange::jobWatchClient([
'jobwatch_username' => $username,
'jobwatch_password' => $password,
'jobwatch_company_key' => $companyKey,
]);
shell
php artisan vendor:publish --tag=bigchange-config