get_spotify_authorization_code

0th

Percentile

Get Spotify authorization Code

This function creates a Spotify access token.

Keywords
auth
Usage
get_spotify_authorization_code(client_id = Sys.getenv("SPOTIFY_CLIENT_ID"),
  client_secret = Sys.getenv("SPOTIFY_CLIENT_SECRET"),
  scope = spotifyr::scopes)
Arguments
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

Aliases
  • get_spotify_authorization_code
Examples
# NOT RUN {
get_spotify_authorization_code()
# }
Documentation reproduced from package spotifyr, version 2.1.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.