PHP code example of keboola / job-queue-api-php-client
1. Go to this page and download the library: Download keboola/job-queue-api-php-client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
keboola / job-queue-api-php-client example snippets
use Keboola\JobQueueClient\Client;
use Keboola\JobQueueClient\JobData;use Psr\Log\NullLogger;
$client = new Client(
new NullLogger(),
'http://queue.conenection.keboola.com/',
'xxx-xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
);
$result = $client->createJob(new JobData(
'keboola.ex-db-snowflake',
'123',
[],
'run'
));
var_dump($result['id']);