Repository navigation
6.0.0
Rebuilt on the shared keboola/php-api-client-base (transport, auth, retry, error handling). The public API still returns raw decoded arrays — the breaking change is how the clients are constructed.
Breaking changes
- Constructor signature.
CredentialsandManagernow take the API base URL and token as explicit arguments, followed by named transport options, replacing the old(token, config[])shape:new Credentials($baseUrl, $storageToken, backoffMaxTries: 10, ...); new Manager($baseUrl, $applicationToken, ...);
config['url']→$baseUrl,config['handler']→requestHandler,config['backoffMaxTries']→backoffMaxTries. - Minimum PHP is now 8.2.
Keboola\OAuthV2Api\Exception\ClientExceptionnow extendsKeboola\ApiClientBase\Exception\ClientException(still anException; gainsgetStatusCode()/getResponseBody()).Credentials::add()now requires the#datakey (encrypted payload) instead ofdata.
New
Manager's application token is now optional — when omitted (ornull), the client authenticates via the projected Kubernetes ServiceAccount token instead ofX-KBC-ManageApiToken.
Preserved behavior
- Retries (10 attempts) on 5xx and transport errors, 120s connect/request timeouts, and
Accept: application/jsonon every request — matching the previous client.
Internals
- Removed the hand-rolled
Commontransport; retry, timeouts, auth, and error normalization now come fromkeboola/php-api-client-base ^1.1.1.