From 7eb0eaaebc7e71260739c175b8ae7e3d28fef336 Mon Sep 17 00:00:00 2001 From: Mike iLL Kilmer Date: Mon, 6 Jul 2020 12:58:39 -0500 Subject: [PATCH] Add redirect_uri (#529) And specify that it should be the address that the App runs over. --- examples/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/app.py b/examples/app.py index 5639f97..fb1d804 100644 --- a/examples/app.py +++ b/examples/app.py @@ -5,6 +5,7 @@ Prerequisites export SPOTIPY_CLIENT_ID=client_id_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` Run app.py @@ -53,4 +54,4 @@ def playlists(): if not session.get('token_info'): return redirect('/') else: - return spotify.current_user_playlists() \ No newline at end of file + return spotify.current_user_playlists()