PHP client for the Job Queue API (API docs).
composer require keboola/sync-actions-api-php-clientuse Keboola\SyncActionsClient\Client;
use Keboola\SyncActionsClient\JobData;
use Psr\Log\NullLogger;
$client = new Client(
'http://sync-actions.keboola.com/',
'xxx-xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
);
$result = $client->createJob(new JobData(
'keboola.ex-db-snowflake',
'getTables'
));
var_dump($result);Clone this repository and init the workspace with following command:
git clone https://github.com/keboola/sync-actions-api-php-client
cd sync-actions-api-php-client
docker-compose build
docker-compose run --rm dev composer install --no-scripts
Create .env.local file with following contents:
HOSTNAME_SUFFIX=keboola.com
STORAGE_API_TOKEN=xxx-xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxRun the test suite using this command:
docker-compose run --rm dev composer tests
For information about deployment and integration with KBC, please refer to the deployment section of developers documentation