This function returns the Spotify's access token.
get_spotify_access_token(client_id = Sys.getenv("client_id"), client_secret = Sys.getenv("client_secret"))
client_id | String with the Spotify CLIENT_ID. |
---|---|
client_secret | String with the Spotify CLIENT_SECRET. |
Returns a string with de access token.
if (FALSE) { access_token<-get_spotify_access_token(client_id = 'client_id', client_secret = 'client_secret') }