Skip to content

Commit 1786142

Browse files
standardize text and add cursor value to Monitor example (docusign#20)
1 parent 2d8c21e commit 1786142

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

app/monitor/examples/eg001_get_monitoring_data/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def worker(args):
4848
if response["endCursor"] == cursor:
4949
break
5050

51-
result.extend(response["data"])
51+
result.extend([response])
5252
cursor = response["endCursor"]
5353

5454
# Step 3 end

app/monitor/examples/eg001_get_monitoring_data/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def get_monitoring_data():
3535
return render_template(
3636
"example_done.html",
3737
title="Get monitoring data",
38-
h1="Get monitoring data",
38+
h1="Monitoring data result",
39+
message="Results from DataSet:GetStreamForDataset method:",
3940
json=json.dumps(json.dumps(results, default=str))
4041
)
4142

app/monitor/templates/eg001_get_monitoring_data.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- extend base layout --> {% extends "base.html" %} {% block content %}
22

33
<h4>1. Get monitoring data</h4>
4-
<p>This topic demonstrates how to get and display all of your organization's monitoring data.</p>
4+
<p>Demonstrates how to get and display all of your organizations monitoring data.</p>
55

66
{% if show_doc %}
77
<p><a target='_blank' href='{{ documentation | safe }}'>Documentation</a> about this example.</p>

app/monitor/templates/home_monitor.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33

44
{% block content %}
55

6-
{% if not 'ds_user_name' in session %}
7-
<!-- IF not signed in -->
86
<div>
97
<div class="jumbotron jumbotron-fluid"> <table>
108
<tbody>
119
<tr>
1210
<td>
1311
<h1 class="display-4">Python Launcher</h1>
14-
<p class="Xlead">Welcome to the DocuSign Monitor Python examples using JWT flow.</p>
12+
<p class="Xlead">Welcome to the Python code examples for DocuSign Monitor API with JWT Grant authentication</p>
1513
</td>
1614
<td>
1715
<img src="/static/assets/banner-code.png" />
@@ -20,19 +18,20 @@ <h1 class="display-4">Python Launcher</h1>
2018
</tbody>
2119
</table>
2220
</div>
23-
{% endif %}
2421

2522
<div class="container" style="margin-top: 40px" id="index-page">
26-
<h2>Welcome</h2>
27-
<p>This launcher includes the following examples for the DocuSign Monitor API.</p>
28-
23+
2924
{% if show_doc %}
3025
<p><a target='_blank' href='{{ documentation | safe }}'>Documentation</a> on using JWT from a Python Flask application.</p>
3126
{% endif %}
3227

33-
<h2>Basic Monitor API Examples</h2>
28+
<h2>Monitor API Code Examples</h2>
3429
<h4 id="example001">1. <a href="eg001">Get monitoring data</a></h4>
35-
<p>This example demonstrates how to get monitoring data.</p>
30+
<p>Demonstrates how to get and display all of your organization’s monitoring data.</p>
31+
32+
<p>API method used:
33+
<a target='_blank' href="https://developers.docusign.com/docs/monitor-api/reference/monitor/dataset/getstreamfordataset/">DataSet::GetStreamForDataset</a>.
34+
</p>
3635
</div>
3736
</div>
3837

0 commit comments

Comments
 (0)