<?php

use PDFfiller\OAuth2\Client\Provider\SignatureRequestRecipient;
use PDFfiller\OAuth2\Client\Provider\SignatureRequest;
$provider = (require_once __DIR__ . '/../bootstrap/initWithFabric.php');
//creating recipient by the signature request
$signatureRequest = SignatureRequest::one($provider, 9503);
$recipient = $signatureRequest->createRecipient();
//creating recipient as independent instance
//$recipient = new SignatureRequestRecipient($provider, 130541);
//filling recipient fields
$recipient->email = '*****@*****.**';
$recipient->name = 'New Recipient';
$recipient->access = 'full';
$recipient->require_photo = false;
$recipient->message_subject = 'Email new subject';
$recipient->message_text = 'Hi, its a new message';
$recipient->additional_documents = [];
$recipient->order = 0;
//saving as independent instance
$e = $signatureRequest->addRecipient($recipient);
//saving by signature request
//$e = $signatureRequest->addRecipient($recipient);
dd($e, $recipient);
<?php

use PDFfiller\OAuth2\Client\Provider\SignatureRequest;
$provider = (require_once __DIR__ . '/../bootstrap/initWithFabric.php');
$e = SignatureRequest::one($provider, 129121)->certificate();
dd($e);
<?php

use PDFfiller\OAuth2\Client\Provider\SignatureRequest;
$provider = (require_once __DIR__ . '/../bootstrap/initWithFabric.php');
$recipient = SignatureRequest::one($provider, 9501)->getRecipient(25076);
dd($recipient);
<?php

use PDFfiller\OAuth2\Client\Provider\SignatureRequest;
$provider = (require_once __DIR__ . '/../bootstrap/initWithFabric.php');
$e = SignatureRequest::one($provider, 129121)->signedDocument();
dd($e);