Skip to content

Commit e33f67f

Browse files
committed
DEVDOCS-10616 adding codeDepot markers
1 parent b94d862 commit e33f67f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/eSignature/examples/signingViaEmail.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const docusign = require("docusign-esign");
1010
/**
1111
* This function does the work of creating the envelope
1212
*/
13+
14+
//ds-snippet-start:eSign2Step3
1315
const sendEnvelope = async (args) => {
1416
// Data for this method
1517
// args.basePath
@@ -22,10 +24,10 @@ const sendEnvelope = async (args) => {
2224
let envelopesApi = new docusign.EnvelopesApi(dsApiClient),
2325
results = null;
2426

25-
// Step 1. Make the envelope request body
27+
// Make the envelope request body
2628
let envelope = makeEnvelope(args.envelopeArgs);
2729

28-
// Step 2. call Envelopes::create API method
30+
// Call the Envelopes::create API method
2931
// Exceptions will be caught by the calling function
3032
results = await envelopesApi.createEnvelope(args.accountId, {
3133
envelopeDefinition: envelope,
@@ -35,6 +37,7 @@ const sendEnvelope = async (args) => {
3537
console.log(`Envelope was created. EnvelopeId ${envelopeId}`);
3638
return { envelopeId: envelopeId };
3739
};
40+
//ds-snippet-end:eSign2Step3
3841

3942
/**
4043
* Creates envelope
@@ -43,6 +46,8 @@ const sendEnvelope = async (args) => {
4346
* @returns {Envelope} An envelope definition
4447
* @private
4548
*/
49+
50+
//ds-snippet-start:eSign2Step2
4651
function makeEnvelope(args) {
4752
// Data for this method
4853
// args.signerEmail
@@ -199,5 +204,6 @@ function document1(args) {
199204
</html>
200205
`;
201206
}
207+
//ds-snippet-end:eSign2Step2
202208

203209
module.exports = { sendEnvelope, makeEnvelope, document1 };

0 commit comments

Comments
 (0)