Use the Analytics 2.0 APIs with Python
-
Create a local virtual environment
$ rm -rf venv; $ virtualenv -p $(which python3 2>/dev/null || which python) venv -
Activate the virtual environment
$ [ -f venv/bin/activate ] && source venv/bin/activate || source venv/Scripts/activate -
Install python requirements
$ pip install -r requirements.txt -
Set up authentication.
-
Populate
config.iniwith parameters specific to your integration -
Run
python ims_client.py
See Python client resources on GitHub for example code and additional resources.