API Authorization with flask

How to do an authorization code flow, through Flask and Python.

Usage

Install dependencies

  • flask
  • requests

Fill in your credentials in app.py. This includes the CLIENT_ID and CLIENT_SECRET, which is left blank. You can obtain this by going to Spotify Developers.

run the application and creathe the endpoints you want:

# run the app
python3 ./app.py

Project schema

Basic architecture schema