Skip to content

Commit 0d1d9eb

Browse files
committed
DEVDOCS-10193 - adding codeDepot markers
1 parent 7659e43 commit 0d1d9eb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/rooms/examples/createExternalFormFillSession.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,32 @@ const docusignRooms = require("docusign-rooms");
1010
* This function does the work of creating the form fill session
1111
*/
1212
const 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;

0 commit comments

Comments
 (0)