Skip to content

Commit 714a68c

Browse files
committed
Second commit
1 parent 47b1f77 commit 714a68c

File tree

3 files changed

+7
-30
lines changed

3 files changed

+7
-30
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
# mode_results_python
2-
This script allows users to download PDF's from email shared reports that include PDF
2+
This script allows users to download a CSV of raw SQL from queries in a report.
33

44

55
# Steps to use this script:
66

7-
1. Make sure your report has run successfully at least once.
8-
2. In Mode, generate API token (under Settings -> Your Name -> API Tokens).
9-
3. Add the token and password values to the python.properties file.
10-
4. Modify lines 77 - 80 in demo.py to reflect the column names in your dataset.
7+
1. In Mode, generate API token (under Settings -> Your Name -> API Tokens).
8+
2. Add the token and password values to the python.properties file.
9+
3. Modify lines 77 - 80 in demo.py to reflect the column names in your dataset.
1110
4. Run this script the first time using
1211
`python demo.py -org={{organization_username}} -reporttoken={{report_token}}`
1312
You will receive an error stating no querytoken was provide but querytokens will be printed above the error with it's SQL to help you choose the correct token.
14-
4. Once you've selected a querytoken, run the script using
13+
5. Once you've selected a querytoken, run the script using
1514

16-
`python demo.py -org={{organization_username}} -reporttoken={{report_token}} -querytoken={{query_token}}`
15+
`python demo.py -org={{organization_username}} -reporttoken={{report_token}}`
1716

1817
For example, for this report https://modeanalytics.com/modeanalytics/reports/eb7e7c23e72f I would run:
1918

20-
`python demo.py -org=modeanalytics -reporttoken=eb7e7c23e72f -querytoken=d832cd041c7a`
19+
`python demo.py -org=modeanalytics -reporttoken=eb7e7c23e72f`
2120

2221

python.properties

Lines changed: 0 additions & 10 deletions
This file was deleted.

sql.csv

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)