This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create a new envelope object that we will manage the signature request through | |
var envDef = new docusign.EnvelopeDefinition(); | |
envDef.emailSubject = 'Please sign this document sent from Node SDK'; | |
envDef.templateId = '{TEMPLATE_ID}'; | |
// create a template role with a valid templateId and roleName and assign signer info | |
var tRole = new docusign.TemplateRole(); | |
tRole.roleName = '{ROLE}'; | |
tRole.name = '{USER_NAME}'; | |
tRole.email = '{USER_EMAIL}'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var express = require('express'); | |
var multer = require('multer'); | |
var csv = require('fast-csv'); | |
var router = express.Router(); | |
var upload = multer({dest: 'tmp/csv/'}); | |
router.post('/upload', upload.single('file'), function (req, res, next) { |