Skip to content

Commit bbce7e4

Browse files
Merge pull request #48 from docusign/DEVDOCS-6188
Devdocs 6188
2 parents bbe77bd + c4ceb9c commit bbce7e4

File tree

8 files changed

+43
-44
lines changed

8 files changed

+43
-44
lines changed

config/examplesApi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"examplesApi":{"isESignatureApi":true,"isRoomsApi":false,"isClickApi":false,"isMonitorApi":false,"isAdminApi":false}}
1+
{"examplesApi":{"isESignatureApi":false,"isRoomsApi":false,"isClickApi":false,"isMonitorApi":true,"isAdminApi":false}}

lib/click/controllers/eg001CreateClickwrap.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ eg001CreateClickwrap.createController = async (req, res) => {
6363
req.session.clickwrapId = results.clickwrapId;
6464
req.session.clickwrapName = results.clickwrapName;
6565
res.render("pages/example_done", {
66-
title: "Creating a new clickwrap",
67-
h1: "Creating a new clickwrap",
68-
message: `The clickwrap ${results.clickwrapName} has been created`
66+
title: "Create a clickwrap",
67+
h1: "Create a clickwrap",
68+
message: `The clickwrap ${results.clickwrapName} has been created.`,
69+
json: JSON.stringify(results)
6970
});
7071
}
7172
}

lib/click/controllers/eg002ActivateClickwrap.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ eg002ActivateClickwrap.createController = async (req, res) => {
5959
// Save for use by other examples that need an clickwrapId
6060
req.session.clickIsActive = true;
6161
res.render("pages/example_done", {
62-
title: "Activating a new clickwrap",
63-
h1: "Activating a new clickwrap",
64-
message: `The clickwrap ${results.clickwrapName} has been activated`
62+
title: "Activate a clickwrap",
63+
h1: "Activate a clickwrap",
64+
message: `The clickwrap ${results.clickwrapName} has been activated.`,
65+
json: JSON.stringify(results)
6566
});
6667
}
6768
}
@@ -80,7 +81,7 @@ eg002ActivateClickwrap.getController = async (req, res) => {
8081
sourceFile = (path.basename(__filename))[5].toLowerCase() + (path.basename(__filename)).substr(6);
8182
res.render("pages/click-examples/eg002ActivateClickwrap", {
8283
eg: eg, csrfToken: req.csrfToken(),
83-
title: "Activating a new clickwrap",
84+
title: "Activate a clickwrap",
8485
clickwrapOk: req.session.hasOwnProperty("clickwrapId"),
8586
sourceFile: sourceFile,
8687
sourceUrl: dsConfig.githubExampleUrl + 'click/examples/' + sourceFile,

lib/click/controllers/eg003CreateNewClickwrapVersion.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ eg003CreateNewClickwrapVersion.createController = async (req, res) => {
5959
if (results) {
6060
// Save for use by other examples that need an clickwrapId
6161
res.render("pages/example_done", {
62-
title: "Creating a new clickwrap version",
63-
h1: "Creating a new clickwrap version",
64-
message: `The 2nd version of clickwrap ${results.clickwrapName} has been created`
62+
title: "Create a new clickwrap version",
63+
h1: "Create a new clickwrap version",
64+
message: `The 2nd version of clickwrap ${results.clickwrapName} has been created.`,
65+
json: JSON.stringify(results)
6566
});
6667
}
6768
}

views/pages/click-examples/eg002ActivateClickwrap.ejs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<% include ../../partials/examplesHead %>
22

3-
<h4>2. Activating a clickwrap</h4>API
4-
<p>API
5-
This example demonstrates how to use the Click API to activate a new
6-
clickwrap that you have already created.<br/> By default, new
7-
clickwraps are inactive. You must activate your clickwrap before
8-
you can use it.
3+
<h4>2. Activate a clickwrap</h4>
4+
<p>Activates a new clickwrap that you have already created.
5+
By default, new clickwraps are inactive. <br> You must activate
6+
your clickwrap before you can use it.
97
</p>
108

119
<% include ../../partials/docBody %>

views/pages/index.ejs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@
2020
<p class="Xlead">
2121
Run and explore DocuSign Admin API code examples with Authorization Code Grant or JWT Grant authentication
2222
</p>
23+
<% } else if (examplesApi.examplesApi.isClickApi) { %>
24+
<p class="Xlead">
25+
Run and explore Click API code examples with Authorization Code Grant or JWT Grant authentication
26+
</p>
27+
<% } else if (examplesApi.examplesApi.isRoomsApi) { %>
28+
<p class="Xlead">
29+
Run and explore Rooms API code examples with Authorization Code Grant or JWT Grant authentication
30+
</p>
31+
<% } else if (examplesApi.examplesApi.isMonitorApi) { %>
32+
<p class="Xlead">
33+
Run and explore Monitor API code examples with JWT Grant authentication
34+
</p>
2335
<% } else { %>
2436
<p class="Xlead">
2537
Run and explore eSignature REST API code examples with Authorization Code Grant or JWT Grant authentication
Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,51 @@
1-
<h2>Welcome</h2>
2-
<p>This launcher includes the following examples for the DocuSign Click API.</p>
3-
41
<% if (showDoc) { %>
52
<p><a target='_blank' href='<%= documentation %>'>Documentation</a> on using OAuth Authorization Code Grant and JWT
63
from
74
a Node Express application.</p>
85
<% } %>
96

10-
<% if (locals.dsConfig.multiSourceChooser) { %>
11-
<h3 class="mt-4">Click API Code Examples for C#, PHP, Java, Node.js, Python, and Curl</h3>
12-
<% } else { %>
13-
<h3 class="mt-4">Click API Code Examples</h3>
14-
<% } %>
15-
16-
<h4 id="example001">1. <a href="eg001">Creating a clickwrap</a></h4>
7+
<h4 id="example001">1. <a href="eg001">Create a clickwrap</a></h4>
178
<p>
18-
This example demonstrates how to use the Click API to create a
19-
clickwrap that you can embed in your website or app.
9+
Creates a clickwrap that you can embed in your website or app.
2010
</p>
2111
<p>
2212
API method used:
2313
<a target='_blank'
2414
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/createclickwrap/">ClickWraps::createClickwrap</a>
2515
</p>
2616

27-
<h4 id="example002">2. <a href="eg002">Activating a clickwrap</a></h4>
17+
<h4 id="example002">2. <a href="eg002">Activate a clickwrap</a></h4>
2818
<p>
29-
This example demonstrates how to use the Click API to activate a
30-
new clickwrap that you have already created.
19+
Activates a new clickwrap that you have already created.
3120
</p>
3221
<p>
3322
API method used:
3423
<a target='_blank'
3524
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/updateclickwrapversion">ClickWraps::updateClickwrapVersion</a>
3625
</p>
3726

38-
<h4 id="example003">3. <a href="eg003">Creating a new clickwrap version</a></h4>
39-
<p>This example demonstrates how to use the Click API to
40-
create a new version of a clickwrap.</p>
27+
<h4 id="example003">3. <a href="eg003">Create a new clickwrap version</a></h4>
28+
<p>Creates a new version of a clickwrap.</p>
4129
<p>
4230
API method used:
4331
<a target='_blank'
4432
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/createclickwrapversion/">ClickWraps::createClickwrapVersion</a>
4533
</p>
4634

47-
<h4 id="example004">4. <a href="eg004">Getting a list of clickwraps</a></h4>
35+
<h4 id="example004">4. <a href="eg004">Get a list of clickwraps</a></h4>
4836
<p>
49-
This example demonstrates how to use the Click API to get a list of
50-
clickwraps associated with a specific DocuSign user.</p>
37+
Gets a list of clickwraps associated with a specific DocuSign user.</p>
5138
<p>
5239
API method used:
5340
<a target='_blank'
5441
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/getclickwraps">ClickWraps::getClickwraps</a>
5542
</p>
5643

57-
<h4 id="example005">5. <a href="eg005">Getting clickwrap responses</a></h4>
44+
<h4 id="example005">5. <a href="eg005">Get clickwrap responses</a></h4>
5845
<p>
59-
This example demonstrates how to use the Click API to get user
60-
responses to your clickwrap agreements.</p>
46+
Gets user responses to your clickwrap agreements.</p>
6147
<p>
6248
API method used:
6349
<a target='_blank'
6450
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/getclickwrapagreements">ClickWraps::getClickwrapAgreements</a>
65-
</p>
51+
</p>

views/pages/index_monitor_examples.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<% } else { %>
1212
<h1 class="display-4">Node Launcher</h1>
1313
<p class="Xlead">
14-
Welcome to the Node code examples for DocuSign Monitor API with JWT Grant authentication
14+
Run and explore Monitor API code examples with JWT Grant authentication
1515
</p>
1616
<% } %>
1717

@@ -53,4 +53,4 @@
5353
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.1/anchor.min.js"></script>
5454
<script>anchors.options.placement = 'left'; anchors.add('h4')</script>
5555

56-
<% include ../partials/genericFoot %>
56+
<% include ../partials/genericFoot %>

0 commit comments

Comments
 (0)