A Python package with an API client for ActivityInfo version 4.
Create a Python virtual environment in the project root:
python3 -m venv venv
Activate the virtual environment:
source venv/bin/activate
Install the module's requirements using pip
:
python3 -m pip install -r requirements.txt
Start the Python 3 shell:
python3
Load the module and get a JSON of the databases in your account:
from activityinfo import Client
client = Client("<your API token>")
dbs = client.get("databases")
# 'dbs' is a JSON object with the list of databases in your account
See also the help article on API tokens in the ActivityInfo user manual.
When you're done, deactivate the virtual environment:
deactivate
The code in this Python package is released under the MIT license. See the LICENSE file for the full license.