get_spotify_access_token | R Documentation |
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") )
client_id |
Defaults to System Environment variable "SPOTIFY_CLIENT_ID" |
client_secret |
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()
## Not run: token <- get_spotify_access_token() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.