This function returns the Spotify's access token.

get_spotify_access_token(client_id = Sys.getenv("client_id"),
  client_secret = Sys.getenv("client_secret"))

Arguments

client_id

String with the Spotify CLIENT_ID.

client_secret

String with the Spotify CLIENT_SECRET.

Value

Returns a string with de access token.

Examples

if (FALSE) { access_token<-get_spotify_access_token(client_id = 'client_id', client_secret = 'client_secret') }