digitalprint / printess-api-php
Printess API client library for PHP.
v1.3.0
2023-01-17 09:43 UTC
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
- ext-openssl: *
- composer/ca-bundle: ^1.1
Requires (Dev)
- eloquent/liberator: ^2.0
- friendsofphp/php-cs-fixer: ^3.0
- guzzlehttp/guzzle: ^6.3 || ^7.0
- phpunit/phpunit: ^5.7 || ^6.5 || ^7.1 || ^8.5
README
Getting started
Initializing the Printess API client, and setting your AccessToken key.
$printess = new \Printess\Api\PrintessApiClient(); $printess->setAccessToken("TheVerySecretAccessToken");
Creating a new produce job.
$job = $printess->production->produce([ 'templateName' => 'st:thesavedjobtoken', 'outputSettings' => ['dpi' => 150], 'outputFiles' => [ [ 'documentName' => 'myDocument' ], ], 'origin' => 'printess', ]);
Get the job status with the link to the pdf file.
$status = $printess->production->getStatus([ "jobId" => $job->jobId, ]);