BoxLang 🚀 A New JVM Dynamic Language Learn More...
A CFML wrapper for the Eversign API. Use it to create, send, and track legally binding e-signature documents.
Feel free to use the issue tracker to report bugs or suggest improvements!
This project borrows heavily from the API frameworks built by jcberquist. Thanks to John for all the inspiration!
eversigncfc
Reference Manualhelpers.create_document
helpers.use_template
The following is a quick example of sending one-off documents for signatures with Eversign, using the create_document
helper component.
eversign = new path.to.eversigncfc.eversign( access_key = 'xxx', business_id = xxx );
document = new path.to.eversigncfc.helpers.create_document();
document.sandbox()
.title( "Testing a document!" )
.message( "No reason to sign this." )
.addFile( {
"name" = "Example",
"file_url" = "https://always-public-testing.s3.amazonaws.com/example.pdf"
} )
.addSigner( {
"id" = 1,
"name" = "Jo McSign",
"email" = "[email protected]"
} );
writeDump( var='#eversign.createDocument( document )#' );
To get started with the Eversign API, you'll need an Access Key and Business ID.
Once you have these, you can provide them to this wrapper manually when creating the component, as in the Quick Start example above, or via environment variables named EVERSIGN_ACCESS_KEY
and EVERSIGN_BUSINESS_ID
, which will get picked up automatically. This latter approach is generally preferable, as it keeps hardcoded credentials out of your codebase.
A full reference manual for all public methods in eversign.cfc
can be found in the docs
directory, here.
helpers.create_document
The reference manual for all public methods in helpers/create_document.cfc
can be found in the docs
directory, in create_document.md
.
Unless indicated, all methods are chainable. To better understand how these work, you'll want to read the documentation regarding the Create Document endpoint.
helpers.use_template
The reference manual for all public methods in helpers/use_template.cfc
can be found in the docs
directory, in use_template.md
.
Unless indicated, all methods are chainable. To better understand how these work, you'll want to read the documentation regarding the Use Template endpoint.
$
box install eversigncfc