PHP code example of cyberlpkf / clicksign

1. Go to this page and download the library: Download cyberlpkf/clicksign library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cyberlpkf / clicksign example snippets


CLICKSIGN_USE_CONFIG_ON_DATABASE=false
CLICKSIGN_USE_INTEGRATION=false
CLICKSIGN_ENVIRONMENT=dev
CLICKSIGN_DEV_URL=https://sandbox.clicksign.com
CLICKSIGN_PROD_URL=https://app.clicksign.com
CLICKSIGN_DOCUMENT_VERSION="/api/v1/documents"
CLICKSIGN_UPDATEDOCUMENT_VERSION="/api/v1/documents"
CLICKSIGN_LIST_VERSION="api/v1/lists"
CLICKSIGN_NOTIFICATION_VERSION="/api/v1/notifications"
CLICKSIGN_SIGNERS_VERSION="api/v1/signers"
CLICKSIGN_DEV_ACCESS_TOKEN="SEU TOKEN PARA A ÁREA DE DESENVOLVIMENTO"
CLICKSIGN_PROD_ACCESS_TOKEN="SEU TOKEN PARA A ÁREA DE PRODUÇÃO"
CLICKSIGN_DOCUMENT_SIGN_DURATION=0
bash
php artisan vendor:publish --provider="cyberlpkf\clicksign\ClickSignServiceProvider" --tag="migrations"
bash
php artisan migrate
 php
$response = (new Clicksign())
                ->setApiId(1)
                ->setFilialId(3)
                ->createDocument($path, $clicksignPath = null, $mimetype = 'application/pdf', $deadline = null, $autoClose = true, $locale = 'pt-BR', $sequence_enabled = false);

 php
$response = (new Clicksign())->createDocument($path, $clicksignPath = null, $mimetype = 'application/pdf', $deadline = null, $autoClose = true, $locale = 'pt-BR', $sequence_enabled = false);
 php
$response =  (new Clicksign())->signerToDocument(String $DocumentKey, $SignerKey, $sign_as = 'approve', $message = null);
 php
$response =  (new Clicksign())->showDocument($DocumentKey);
 php
$response = (new Clicksign())->cancelDocument($DocumentKey);
 php
$response = (new Clicksign())->deleteDocument($DocumentKey);
 php
$response = (new Clicksign())->notificationsByEmail($SignerKey, $message = null);