refresh-token

Spotify Refresh Token Python

Spotify Refresh Token Python Question: I have a python program that returns whatever song I’m currently listening to. The Access Token I get from Spotify API only lasts an hour and I’m having trouble finding an easy way to implement a refresh token into my code. SPOTIFY_GET_CURRENT_TRACK_URL = ‘https://api.spotify.com/v1/me/player’ SPOTIFY_ACCESS_TOKEN = ‘BQBQMLkkLb6az9TRv-PDXFFcm4KHrofc67H12Uzs3FXaPWHETy4ivnC-WGu2Jg5wlZ_yhggGypiO0Gnv_QkNGkefTuCjNR_Tzjw4pv2W9f_9_D7-LfD2W5KVPzh2DxMmf9TNPpSn200D_Xd4AD8F_MeJc-DIlA’ #Method to return …

Total answers: 3