Skip to content

keboola/sync-actions-api-php-client

Repository files navigation

Sync Actions PHP Client

PHP client for the Job Queue API (API docs).

Usage

composer require keboola/sync-actions-api-php-client
use 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);

Development

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-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Run the test suite using this command:

docker-compose run --rm dev composer tests

Integration

For information about deployment and integration with KBC, please refer to the deployment section of developers documentation

About

[READ-ONLY] Synchronous actions PHP client

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Generated from keboola/general-template