This is a wrapper for encapsulating Client and BranchAwareClient of Storage API PHP Client.
composer require keboola/storage-api-php-client-branch-wrapper
Create client instance and use it in wrapper instance:
$clientOptions = ClientOptions('http://xxx.com', '1234-XXXX', '123');
$clientWrapper = new ClientWrapper($clientOptions);
$branchClient = $clietnWrapper->getBranchClient();Client options refer to the options of the Storage API Client constructor.
Except for the runIdGenerator option which defines a callback used to generate runId when none is provided in
request (applicable for StorageClientRequestFactory).
Create a test Keboola Connection project and set TEST_STORAGE_API_URL and TEST_STORAGE_API_TOKEN environment variables. Use the .env.dist
file to create .env file.
Run tests with:
docker-compose run --rm dev
MIT licensed, see LICENSE file.