Learn R Programming

DSpoty (version 0.1.0)

get_spotify_access_token: Get Spotify Access Token.

Description

This function returns the Spotify's access token.

Usage

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

Run this code
# NOT RUN {
access_token<-get_spotify_access_token(client_id = 'client_id', client_secret = 'client_secret')
# }

Run the code above in your browser using DataLab