File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,28 +10,32 @@ const docusignRooms = require("docusign-rooms");
1010 * This function does the work of creating the form fill session
1111 */
1212const createExternalFormFillSession = async ( args ) => {
13- // Step 2 start
13+ //ds-snippet- start:Rooms6Step2
1414 let dsApiClient = new docusignRooms . ApiClient ( ) ;
1515 dsApiClient . setBasePath ( args . basePath ) ;
1616 dsApiClient . addDefaultHeader ( "Authorization" , "Bearer " + args . accessToken ) ;
17- // Step 2 end
17+ //ds-snippet- end:Rooms6Step2
1818
1919 if ( args . docuSignFormId ) {
20- // Step 4 start
20+ //ds-snippet- start:Rooms6Step4
2121 let externalFormFillSessionApi =
2222 new docusignRooms . ExternalFormFillSessionsApi ( dsApiClient ) ,
2323 externalForm = null ;
24+ //ds-snippet-end:Rooms6Step4
2425
26+ //ds-snippet-start:Rooms6Step3
2527 let requestBody = { formId : args . docuSignFormId , roomId : args . roomId , xFrameAllowedUrl : "http://localhost:3000" } ;
28+ //ds-snippet-end:Rooms6Step3
2629
30+ //ds-snippet-start:Rooms6Step4
2731 externalForm =
2832 await externalFormFillSessionApi . createExternalFormFillSession (
2933 args . accountId ,
3034 { body : requestBody }
3135 ) ;
3236
3337 return externalForm ;
34- // Step 4 end
38+ //ds-snippet- end:Rooms6Step4
3539 } else {
3640 let roomsApi = new docusignRooms . RoomsApi ( dsApiClient ) ,
3741 roomDocuments = null ;
You can’t perform that action at this time.
0 commit comments