Dumps the queries from one or more reports to the local file system as SQL files.
Forked from https://github.com/mode/mode_python_sql
- In Mode, generate API token (under Settings -> Your Name -> API Tokens).
- Add the token and password values to the mode.yml file.
- Add the name of your organisation to the mode.yml file.
- Add each report you want to retrieve queries from to the mode.yml file.
- Run this script using:
python demo.py [-o output_directory]