15/08
2014
Wallogit.com
2017 © Pedro Peláez
Adobe EchoSign PHP Api Implementation
This PHP library wraps Adobe's EchoSign API, currently at Version 15. The library closely follows the documentation at https://secure.echosign.com/public/docs/EchoSignDocumentService15, (*1)
This is currently a development library, not fully tested for production use, (*2)
composer require danielsan/echosign-api-php Please provide a version constraint for the danielsan/echosign-api-php requirement: 1.0.0
Don't forget to include vendor/autoload.php to use it, (*3)
There are basic examples of all generally accessible methods in the examples folder. The EchoSign API has several methods that are only accessible by requesting special permission from the provider. Those methods are implemented in the wrapper, but examples are not provided., (*4)
$client = new SoapClient(EchoSign\API::getWSDL());
$api = new EchoSign\API($client, 'YOUR API KEY');
$file = EchoSign\Info\FileInfo::createFromFile('demo.pdf');
$document = new EchoSign\Info\DocumentCreationInfo('Test sendDocument', $file);
$recipients = new EchoSign\Info\RecipientInfo;
$recipients->addRecipient($recipient_email);
$document->setRecipients($recipients);
$result = $api->sendDocument($document);
$client = new SoapClient(EchoSign\API::getWSDL());
$api = new EchoSign\API($client, 'YOUR API KEY');
$file = EchoSign\Info\FileInfo::createFromFile('demo.pdf');
$widget = new EchoSign\Info\WidgetCreationInfo('Test createEmbeddedWidget', $file);
$result = $api->createEmbeddedWidget($widget);