get_spotify_authorization_code | R Documentation |
This function creates a Spotify authorization code.
See httr::oauth2.0_token
.
get_spotify_authorization_code(
client_id = Sys.getenv("SPOTIFY_CLIENT_ID"),
client_secret = Sys.getenv("SPOTIFY_CLIENT_SECRET"),
scope = scopes()
)
client_id |
Defaults to System Environment variable "SPOTIFY_CLIENT_ID" |
client_secret |
Defaults to System Environment variable "SPOTIFY_CLIENT_SECRET" |
scope |
Space delimited string of spotify scopes, found here: https://developer.spotify.com/documentation/general/guides/scopes/. All scopes are selected by default |
The Spotify Web API Token2.0 reference class object (see
httr::oauth2.0_token
), or an error message.
Other authentication functions:
get_spotify_access_token()
## Not run:
authorization <- get_spotify_authorization_code()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.