Share with Colleagues using PDFfiller PHP Client

Using PDFfiller, you can easily and securely collaborate with your clients on PDF documents. Edit, complete and share them with other business partners from any internet-connected device. Quickly access your shared documents anytime.
          
              
                    PDFfiller\OAuth2\Client\Provider\FillRequest::save();

$fillRequestEntity = new FillRequest($provider);

$fillRequestEntity->document_id = 20829426;
$fillRequestEntity->access = "full";
$fillRequestEntity->status = "public";
$fillRequestEntity->email_required = true;
$fillRequestEntity->name_required = true;
$fillRequestEntity->custom_message = "Custom message";
$fillRequestEntity->notification_emails[] = new NotificationEmail(['name' => 'name', 'email' => 'email@email.com']);
$fillRequestEntity->additional_documents[] = new AdditionalDocument('name1');
$fillRequestEntity->additional_documents[] = new AdditionalDocument('name3');
$fillRequestEntity->enforce_required_fields = true;
$fillRequestEntity->welcome_screen = false;
$fillRequestEntity->notifications = new FillRequestNotifications(FillRequestNotifications::WITH_PDF);

$result = $fillRequestEntity->save();