Mode Analytics
Prerequisites
warning
Follow installation instructions here
- Get
admin
credentials on yourMode Analytics
instance. - Generate an
API token
by following these instructions
Run extraction script
Once the package has been installed, you should be able to run the following command in your terminal:
castor-extract-mode [arguments]
The script will run and display logs as following:
INFO - Authentication succeeded.
INFO - Starting extraction for DATASOURCE...
INFO - Calling https://modeanalytics.com/api/...
INFO - 1 rows extracted
INFO - Wrote output file: /tmp/catalog/1649080890-datasource.json
INFO - Starting extraction for COLLECTION...
...
INFO - Wrote output file: /tmp/catalog/1649080890-member.json
INFO - Wrote output file: /tmp/catalog/1649080890-summary.json