Skip to content

MCProHosting/node-docusign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docusign Client Implementation

See the jsdocs for further usage information. Quick example of a process that sends a template, then waits until it's been signed by all parties before exiting:

var Docusign = require('docusign');
var docusign = new Docusign({
    environment: 'demo', // Defaults to production
    email: '[email protected]',
    password: '',
    key: ''
});

// Send a template to users to sign, then look up the template's
// details and see if it's complete.
docusign.template('fbb88c9c-54b9-40d0-b655-f6908fa3956c')
    .sign()
    .to({
        email: '[email protected]',
        name: 'Connor Peet',
        roleName: 'signer'
    })
    .subject('SIGN PLZ')
    .send()
    .then(function (envelope) {
        setInterval(function () {
            envelope.getDetails().then(function (envelope) {
                if (envelope.isCompleted()) {
                    console.log('Document signed by all parties');
                    process.exit(0);
                }
            });
        }, 1000);
    });

About

Docusign client for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published