powered by
This function creates a Spotify access token.
get_spotify_access_token( client_id = Sys.getenv("SPOTIFY_CLIENT_ID"), client_secret = Sys.getenv("SPOTIFY_CLIENT_SECRET") )
Defaults to System Environment variable "SPOTIFY_CLIENT_ID"
Defaults to System Environment variable "SPOTIFY_CLIENT_SECRET"
The Spotify Access Token of the current user or a meaningful error message.
Other authentication functions: get_spotify_authorization_code()
get_spotify_authorization_code()
# NOT RUN { token <- get_spotify_access_token() # }
Run the code above in your browser using DataLab