<?php

use PDFfiller\OAuth2\Client\Provider\CustomLogo;
use PDFfiller\OAuth2\Client\Provider\Uploader;
$provider = (require_once __DIR__ . '/../bootstrap/initWithFabric.php');
$uploader = new Uploader($provider, CustomLogo::class);
$uploader->type = Uploader::TYPE_URL;
$uploader->file = 'http://design.ubuntu.com/wp-content/uploads/ubuntu-logo32.png';
$logo = $uploader->upload();
dd($logo);
<?php

use PDFfiller\OAuth2\Client\Provider\Uploader;
use PDFfiller\OAuth2\Client\Provider\Document;
use Symfony\Component\HttpFoundation\File\File;
$provider = (require_once __DIR__ . '/../bootstrap/initWithFabric.php');
$uploader = new Uploader($provider, Document::class);
$uploader->type = Uploader::TYPE_MULTIPART;
$uploader->file = __DIR__ . '/pdf_open_parameters.pdf';
$document = $uploader->upload();
dd($document);