Learn R Programming

tinyspotifyr (version 0.2.3)

get_spotify_access_token: Get Spotify Access Token

Description

This function creates a Spotify access token.

Usage

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

Value

Returns an environment with access token data.

Arguments

client_id

Defaults to System Environment variable "SPOTIFY_CLIENT_ID"

client_secret

Defaults to System Environment variable "SPOTIFY_CLIENT_SECRET"

Examples

Run this code
if (FALSE) {
get_spotify_access_token()
}

Run the code above in your browser using DataLab