Add redirect_uri (#529)

And specify that it should be the address that the App runs over.
This commit is contained in:
Mike iLL Kilmer 2020-07-06 12:58:39 -05:00 committed by GitHub
parent 2bfa7e0151
commit 7eb0eaaebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ Prerequisites
export SPOTIPY_CLIENT_ID=client_id_here export SPOTIPY_CLIENT_ID=client_id_here
export SPOTIPY_CLIENT_SECRET=client_secret_here export SPOTIPY_CLIENT_SECRET=client_secret_here
export SPOTIPY_REDIRECT_URI='http://127.0.0.1:8080' // added to your [app settings](https://developer.spotify.com/dashboard/applications)
// on Windows, use `SET` instead of `export` // on Windows, use `SET` instead of `export`
Run app.py Run app.py
@ -53,4 +54,4 @@ def playlists():
if not session.get('token_info'): if not session.get('token_info'):
return redirect('/') return redirect('/')
else: else:
return spotify.current_user_playlists() return spotify.current_user_playlists()