Description Usage Arguments Value Examples
This function creates a Spotify access token.
1 2 3 4 5 | get_spotify_authorization_code(
client_id = Sys.getenv("SPOTIFY_CLIENT_ID"),
client_secret = Sys.getenv("SPOTIFY_CLIENT_SECRET"),
scope = tinyspotifyr::scopes
)
|
client_id |
Defaults to System Envioronment variable "SPOTIFY_CLIENT_ID" |
client_secret |
Defaults to System Envioronment 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 |
Returns an environment with access token data.
1 2 3 4 | ## Not run:
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.