1. Go to this page and download the library: Download unified/unified-to 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/ */
unified / unified-to example snippets
declare(strict_types=1);
use Unified\Unified_to\Models\Operations;
use Unified\Unified_to\Models\Shared;
$sdk = Unified_to\UnifiedTo::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$request = new Operations\CreateAccountingAccountRequest(
accountingAccount: new Shared\AccountingAccount(),
connectionId: '<id>',
);
$response = $sdk->accounting->createAccountingAccount(
request: $request
);
if ($response->accountingAccount !== null) {
// handle response
}
declare(strict_types=1);
use Unified\Unified_to\Models\Operations;
use Unified\Unified_to\Models\Shared;
$sdk = Unified_to\UnifiedTo::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$request = new Operations\CreateAccountingAccountRequest(
accountingAccount: new Shared\AccountingAccount(),
connectionId: '<id>',
);
$response = $sdk->accounting->createAccountingAccount(
request: $request
);
if ($response->accountingAccount !== null) {
// handle response
}