keboola/sandboxes-service-api-client

Keboola Sandboxes Service API client

1.3.0 2024-10-07 13:46 UTC

README

Installation

composer require keboola/sandboxes-service-api-client

Usage

use Keboola\SandboxesServiceApiClient\Sandboxes\SandboxesApiClient;
use Keboola\SandboxesServiceApiClient\ApiClientConfiguration;

new SandboxesApiClient(new ApiClientConfiguration(
    baseUrl: 'https://data-science.keboola.com',
    storageToken: '{storage-api-token}',
    userAgent: 'My App',
));

$result = $client->createSandbox([
    'componentId' => 'keboola.data-apps',
    'configurationId' => '123',
    'configurationVersion' => '4',
    'type' => 'streamlit',
]);

License

MIT licensed, see LICENSE file.