File tree Expand file tree Collapse file tree
examples/eg001_get_monitoring_data Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,24 +32,9 @@ def worker(args):
3232 #Step 3 start
3333
3434 dataset_api = DataSetApi (api_client = api_client )
35-
36- cursor = ""
37- result = []
38- while True :
39- response = dataset_api .get_stream_for_dataset (
40- data_set_name = "monitor" ,
41- version = "2.0" ,
42- cursor = cursor
43- )
44-
45- # If the endCursor from the response is the same as the one
46- # that you already have,
47- # it means that you have reached the end of the records
48- if response ["endCursor" ] == cursor :
49- break
50-
51- result .extend ([response ])
52- cursor = response ["endCursor" ]
35+ result = dataset_api .get_stream (
36+ data_set_name = "monitor" ,
37+ version = "2.0" )._data
5338
5439 # Step 3 end
5540
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def get_monitoring_data():
3636 "example_done.html" ,
3737 title = "Get monitoring data" ,
3838 h1 = "Monitoring data result" ,
39- message = "Results from DataSet:GetStreamForDataset method:" ,
39+ message = "Results from DataSet:GetStream method:" ,
4040 json = json .dumps (json .dumps (results , default = str ))
4141 )
4242
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ <h4>1. Get monitoring data</h4>
88{% endif %}
99
1010 < p > API method used:
11- < a target ='_blank ' href ="https://developers.docusign.com/docs/monitor-api/reference/monitor/dataset/getstreamfordataset / "> DataSet::GetStreamForDataset </ a > .
11+ < a target ='_blank ' href ="https://developers.docusign.com/docs/monitor-api/reference/monitor/dataset/getstream / "> DataSet::GetStream </ a > .
1212</ p >
1313< p >
1414 View source file < a target ="_blank " href ="{{ source_url | safe }} "> {{ source_file }}</ a > on GitHub.
Original file line number Diff line number Diff line change 66cryptography == 3.2.1
77docusign-esign == 3.10.0rc1
88docusign-rooms == 1.1.0
9- docusign-monitor == 1.0.0a1
9+ docusign-monitor == 1.0.0b0
1010docusign-click == 1.0.0
1111Flask == 1.1.1
1212Flask-OAuthlib
You can’t perform that action at this time.
0 commit comments