Download the PHP package keboola/billing-api-php-client without Composer
On this page you can find all versions of the php package keboola/billing-api-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download keboola/billing-api-php-client
More information about keboola/billing-api-php-client
Files in keboola/billing-api-php-client
Package billing-api-php-client
Short Description PHP Client for Keboola Connection Billing API
License MIT
Informations about the package billing-api-php-client
Billing API PHP Client 
PHP client for the Billing API (API docs).
Built on keboola/php-api-client-base,
the shared base for Keboola service API clients (HTTP transport, authentication,
retries, JSON handling and error normalization).
Usage
Clients are created through ClientFactory, which wires the correct authentication
header for each client (X-StorageApi-Token for the project client,
X-KBC-ManageApiToken for the manage client):
createManageClient()'s token is optional: pass a Manage API token to authenticate
with it, or omit it (leave it null) to fall back to the projected service-account
token. createClient() always requires a Storage API token. A non-null token must
be a non-empty string — an empty token is rejected (Webmozart\Assert\InvalidArgumentException).
createClient() and createManageClient() accept an optional $options array
(backoffMaxTries, timeout, connectTimeout, userAgent, logger).
For a custom authentication scheme, construct InternalClient directly with any
Keboola\ApiClientBase\Auth\RequestAuthenticatorInterface implementation:
Error handling
Every failure (transport error, non-2xx response, invalid/empty body) throws a
Keboola\BillingApi\Exception\BillingException. It extends the base client's
Keboola\ApiClientBase\Exception\ClientException, so it also exposes the HTTP
status code and the raw response body when a response was received:
Run tests
-
With the above setup, you can run tests:
- To run tests with local code use:
License
MIT licensed, see LICENSE file.
All versions of billing-api-php-client with dependencies
ext-json Version *
keboola/php-api-client-base Version ^1.0.1
keboola/storage-api-client Version ^14.0|^15.0|^16.0|^17.0|^18.0
symfony/validator Version ^6.0|^7.0
webmozart/assert Version ^1.11