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-11-17 14:35:50 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,
    ]);