Skip to content

Commit 5db4402

Browse files
2 parents 7960c98 + 526a1aa commit 5db4402

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
>
77
### GitHub repo: [code-examples-node](./README.md)
88

9+
If you downloaded this project using the [Quickstart](https://developers.docusign.com/docs/esign-rest-api/quickstart/) tool, it may be configured in one of three ways:
10+
11+
* **[JWT Grant remote signing example](#jwt-grant-remote-signing-example)**–demonstrates how to implement JSON Web Token authentication. It includes a single remote signing workflow.
12+
* **[Authorization Code Grant embedded signing example](#authorization-code-grant-embedded-signing-example)**–demonstrates how to implement Authorization Code Grant authentication. It includes a single embedded signing workflow.
13+
* **[Multiple code examples, Authorization Code Grant and JWT Grant](#installation-steps)**–includes the full range of examples and authentication types.
14+
15+
***Installation and running instructions vary depending on the configuration. Follow the link that matches your project type to get started.***
16+
917
This GitHub repo includes code examples for the [Web Forms API](https://developers.docusign.com/docs/web-forms-api/), [Click API](https://developers.docusign.com/docs/click-api/), [eSignature REST API](https://developers.docusign.com/docs/esign-rest-api/), [Monitor API](https://developers.docusign.com/docs/monitor-api/), and [Rooms API](https://developers.docusign.com/docs/rooms-api/).
1018

1119
## Introduction
@@ -133,6 +141,24 @@ Also, in order to select JSON Web Token authentication in the launcher, in confi
133141
## JWT grant remote signing and Authorization Code Grant embedded signing projects
134142
See [Docusign Quickstart overview](https://developers.docusign.com/docs/esign-rest-api/quickstart/overview/) on the Docusign Developer Center for more information on how to run the JWT grant remote signing project and the Authorization Code Grant embedded signing project.
135143

144+
### Authorization Code Grant embedded signing example:
145+
Run in Git Bash:
146+
```
147+
$ cd <Quickstart folder>/quick_acg
148+
$ npm install
149+
$ npm start
150+
```
151+
152+
Open a browser to http://localhost:3000
153+
154+
### JWT grant remote signing example:
155+
Run in Windows Command Prompt (CMD):
156+
```
157+
$ cd <Quickstart folder>/jwt_console_project
158+
$ npm install
159+
$ npm start
160+
```
161+
136162
## Payments code example
137163

138164
To use the payments code example, create a test payment gateway on the [Payments](https://admindemo.docusign.com/authenticate?goTo=payments) page in your developer account. See [Configure a payment gateway](./PAYMENTS_INSTALLATION.md) for details.

lib/rooms/examples/addingFormToRoom.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const getFormsAndRooms = async (args) => {
4343

4444
//ds-snippet-start:Rooms4Step3
4545
let formLibrariesApi = new docusignRooms.FormLibrariesApi(dsApiClient);
46-
let formLibrariesResults = null;
46+
let formLibrariesResults = null;
4747

4848
formLibrariesResults = await formLibrariesApi.getFormLibraries(
4949
args.accountId
@@ -53,7 +53,9 @@ const getFormsAndRooms = async (args) => {
5353
return;
5454
}
5555

56-
const firstFormLibraryId = formLibraries.formsLibrarySummaries.find(lib => lib.formCount > 0).formsLibraryId;
56+
const firstFormLibraryId = formLibrariesResults.formsLibrarySummaries.find(
57+
(lib) => lib.formCount > 0
58+
).formsLibraryId;
5759
const formsResults = await formLibrariesApi.getFormLibraryForms(
5860
args.accountId,
5961
firstFormLibraryId

0 commit comments

Comments
 (0)