R/fugazi_spotify_data.R
fugazi_spotify_data.Rd
Based on code from this presentation: https://brunaw.com/shortcourses/IXSER/en/pres-en.html#1
Go to https://developer.spotify.com/ and log in,
Go to https://developer.spotify.com/dashboard/ and create a new app,
Save the client ID and the client Secret generated,
Define the redirect URL as http://localhost:1410/,
Use the spotifyOAuth() to authenticate:
library(Rspotify)
key_spotify <- spotifyOAuth("app_id","client_id","client_secret")
This function will produce an error if you do not load the package RSpotify first or if you do not provide as arguments your app_id, client_id and client_secret.
fugazi_spotify_data(app_id = NULL, client_id = NULL, client_secret = NULL)
fugazi_spotify_data