Playing around with OAuth 1.0 and 2.0 authentication
-
Install Poetry: https://python-poetry.org/docs/#installation
-
Install dependencies:
poetry install
-
Rename
.env.template
to.env
and add in config values:Configuration Example HOST_NAME
alteryx.<hostname>.com
(withouthttp(s)://
)CLIENT_KEY
API key CLIENT_SECRET
API secret -
Run the scripts with Poetry (replace
requests_oauthlib_oauth1.py
below with any other script).Using Poetry's virtual environment:
poetry shell python requests_oauthlib_oauth1.py
Outside of Poetry's virtual environment:
poetry run python requests_oauthlib_oauth1.py