get_spotify_access_token: Get Spotify Access Token

Description Usage Arguments Value Examples

View source: R/authenticate.R

Description

This function creates a Spotify access token.

Usage

1
2
3
4
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

Returns an environment with access token data.

Examples

1
2
3
4
## Not run: 
get_spotify_access_token()

## End(Not run)

tinyspotifyr documentation built on Feb. 24, 2021, 5:09 p.m.