get_spotify_access_token: Get Spotify Access Token

View source: R/authenticate.R

get_spotify_access_tokenR Documentation

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")
)

Arguments

client_id

Defaults to System Environment variable "SPOTIFY_CLIENT_ID"

client_secret

Defaults to System Environment variable "SPOTIFY_CLIENT_SECRET"

Value

The Spotify Access Token of the current user or a meaningful error message.

See Also

Other authentication functions: get_spotify_authorization_code()

Examples

## Not run: 
token <- get_spotify_access_token()

## End(Not run)

charlie86/spotifyr documentation built on Dec. 31, 2022, 11:35 a.m.