get_spotify_authorization_code: Get Spotify authorization Code

View source: R/authenticate.R

get_spotify_authorization_codeR Documentation

Get Spotify authorization Code

Description

This function creates a Spotify access token.

Usage

get_spotify_authorization_code(client_id = Sys.getenv("SPOTIFY_CLIENT_ID"),
                               client_secret = Sys.getenv("SPOTIFY_CLIENT_SECRET"),
                               scope = tinyspotifyr::scopes)

Arguments

client_id

Defaults to System Envioronment variable "SPOTIFY_CLIENT_ID"

client_secret

Defaults to System Envioronment variable "SPOTIFY_CLIENT_SECRET"

scope

Space delimited string of spotify scopes, found here: https://developer.spotify.com/documentation/general/guides/scopes/. All scopes are selected by default

Value

Returns an environment with access token data.

Examples

## Not run: 
get_spotify_authorization_code()

## End(Not run)

tinyspotifyr documentation built on June 7, 2026, 5:06 p.m.