Skip to content

Commit b6f28c7

Browse files
committed
2 parents 7317e08 + e9a8613 commit b6f28c7

File tree

10 files changed

+1489
-795
lines changed

10 files changed

+1489
-795
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Node.js Launcher Code Examples
22

3+
>
4+
>### PLEASE! Share your feedback in a [two-question survey](https://docs.google.com/forms/d/e/1FAIpQLScPa74hwhJwi7XWDDj4-XZVOQTF9jJWgbIFEpulXokCqYWT4A/viewform?usp=pp_url&entry.680551577=Node.js).
5+
>
6+
>
37
### GitHub repo: [code-examples-node](./README.md)
48

5-
This GitHub repo includes code examples for the Docusign Admin API, Click API, eSignature REST API, Monitor API, and Rooms API. By default, the launcher will display the eSignature examples. To switch between API code examples, select "Choose API" in the top menu.
6-
9+
This GitHub repo includes code examples for the [Web Forms API](https://developers.docusign.com/docs/web-forms-api/), [Maestro API](https://developers.docusign.com/docs/maestro-api/), [Docusign Admin API](https://developers.docusign.com/docs/admin-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/).
710

811
## Introduction
912

@@ -143,4 +146,4 @@ This repository uses the MIT License. See [LICENSE](./LICENSE) for details.
143146

144147
### Pull Requests
145148
Pull requests are welcomed. Pull requests will only be considered if their content
146-
uses the MIT License.
149+
uses the MIT License.

config/appsettings.example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"clickAPIUrl": "https://demo.docusign.net/clickapi",
3030
"adminAPIUrl": "https://api-d.docusign.net/management",
3131
"monitorApiUrl": "https://lens-d.docusign.net",
32-
"maestroApiUrl": "https://demo.services.docusign.net",
32+
"maestroApiUrl": "https://apps-d.docusign.com/api/maestro",
3333
"webformsApiUrl": "https://apps-d.docusign.com/api/webforms/v1.1",
3434
"codeExamplesManifest": "https://raw.githubusercontent.com/docusign/code-examples-csharp/master/manifest/CodeExamplesManifest.json"
3535
}

lib/maestro/examples/triggerWorkflow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const triggerWorkflow = async (workflow, args) => {
5858
//ds-snippet-end:Maestro1Step4
5959

6060
//ds-snippet-start:Maestro1Step5
61-
const triggerResponse = await workflowTriggerApi.triggerWorkflow(triggerPayload, args.accountId, { mtid, mtsec });
61+
const triggerResponse = await workflowTriggerApi.triggerWorkflow(triggerPayload, args.accountId, args.workflowId, { mtid, mtsec });
6262

6363
return triggerResponse;
6464
//ds-snippet-end:Maestro1Step5

lib/maestro/workflowUtils.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,10 @@ async function publishWorkflow(args, workflowId) {
591591
try {
592592
await workflowManagementApi.publishOrUnPublishWorkflowDefinition(new docusign.DeployRequest(), args.accountId, workflowId);
593593
} catch (error) {
594-
const isConsentRequired = error?.response?.body?.message?.toLowerCase() === 'consent required';
594+
const isConsentRequired = error?.response?.body?.message?.toLowerCase() === 'consent required'
595+
|| error?.body?.message?.toLowerCase() === 'consent required';
595596
if (isConsentRequired) {
596-
return error.response.body.consentUrl;
597+
return error?.response?.body?.consentUrl || error?.body?.consentUrl;
597598
} else {
598599
throw error;
599600
}

0 commit comments

Comments
 (0)