digitalprint/printess-api-php

Printess API client library for PHP.

v1.3.0 2023-01-17 09:43 UTC

This package is auto-updated.

Last update: 2024-10-17 14:17:48 UTC


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,
    ]);