@@ -18,7 +18,7 @@ const sendEnvelope = async (args) => {
1818 // args.accessToken
1919 // args.accountId
2020
21- //ds-snippet-start:eSign1Step3
21+ //ds-snippet-start:eSign44Step3
2222 let dsApiClient = new docusign . ApiClient ( ) ;
2323 dsApiClient . setBasePath ( args . basePath ) ;
2424 dsApiClient . addDefaultHeader ( "Authorization" , "Bearer " + args . accessToken ) ;
@@ -33,13 +33,13 @@ const sendEnvelope = async (args) => {
3333 results = await envelopesApi . createEnvelope ( args . accountId , {
3434 envelopeDefinition : envelope ,
3535 } ) ;
36- //ds-snippet-end:eSign1Step3
36+ //ds-snippet-end:eSign44Step3
3737
3838 let envelopeId = results . envelopeId ;
3939 console . log ( `Envelope was created. EnvelopeId ${ envelopeId } ` ) ;
4040
4141 // Step 3. create the recipient view, the embedded signing
42- //ds-snippet-start:eSign1Step5
42+ //ds-snippet-start:eSign44Step5
4343 let viewRequest = makeRecipientViewRequest ( args . envelopeArgs ) ;
4444 // Call the CreateRecipientView API
4545 // Exceptions will be caught by the calling function
@@ -49,7 +49,7 @@ const sendEnvelope = async (args) => {
4949
5050 return { envelopeId : envelopeId , redirectUrl : results . url } ;
5151} ;
52- //ds-snippet-end:eSign1Step5
52+ //ds-snippet-end:eSign44Step5
5353
5454/**
5555 * Creates envelope
@@ -59,7 +59,7 @@ const sendEnvelope = async (args) => {
5959 * @private
6060 */
6161
62- //ds-snippet-start:eSign1Step2
62+ //ds-snippet-start:eSign44Step2
6363function makeEnvelope ( args ) {
6464 // Data for this method
6565 // args.signerEmail
@@ -131,9 +131,9 @@ function makeEnvelope(args) {
131131
132132 return env ;
133133}
134- //ds-snippet-end:eSign1Step2
134+ //ds-snippet-end:eSign44Step2
135135
136- //ds-snippet-start:eSign1Step4
136+ //ds-snippet-start:eSign44Step4
137137function makeRecipientViewRequest ( args ) {
138138 // Data for this method
139139 // args.dsReturnUrl
@@ -173,11 +173,11 @@ function makeRecipientViewRequest(args) {
173173 viewRequest . pingFrequency = 600 ; // seconds
174174 // NOTE: The pings will only be sent if the pingUrl is an https address
175175 viewRequest . pingUrl = args . dsPingUrl ; // optional setting
176- viewRequest . frameAncestors = [ "https ://localhost:3000" , "https://apps-d.docusign.com" ] ;
176+ viewRequest . frameAncestors = [ "http ://localhost:3000" , "https://apps-d.docusign.com" ] ;
177177 viewRequest . messageOrigins = [ "https://apps-d.docusign.com" ]
178178
179179 return viewRequest ;
180180}
181- //ds-snippet-end:eSign1Step4
181+ //ds-snippet-end:eSign44Step4
182182
183183module . exports = { sendEnvelope, makeEnvelope, makeRecipientViewRequest } ;
0 commit comments