File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,24 @@ const getDocument = async (args) => {
1818 // args.envelopeDocuments.envelopeId
1919 // args.envelopeDocuments.documents -- array of {documentId, name, type}
2020
21+ //ds-snippet-start:eSign7Step2
2122 let dsApiClient = new docusign . ApiClient ( ) ;
2223 dsApiClient . setBasePath ( args . basePath ) ;
2324 dsApiClient . addDefaultHeader ( "Authorization" , "Bearer " + args . accessToken ) ;
2425 let envelopesApi = new docusign . EnvelopesApi ( dsApiClient ) ,
2526 results = null ;
27+ //ds-snippet-end:eSign7Step2
2628
2729 // Step 1. EnvelopeDocuments::get.
2830 // Exceptions will be caught by the calling function
31+ //ds-snippet-start:eSign7Step3
2932 results = await envelopesApi . getDocument (
3033 args . accountId ,
3134 args . envelopeDocuments . envelopeId ,
3235 args . documentId ,
3336 null
3437 ) ;
38+ //ds-snippet-end:eSign7Step3
3539
3640 let docItem = args . envelopeDocuments . documents . find (
3741 ( item ) => item . documentId === args . documentId
You can’t perform that action at this time.
0 commit comments