Random Clojure functions for personal Spotify management
- Leiningen
- Spotify account
- Register a dummy application (eg.
spotify-repl
) as shown here - Create a
resources/config.edn
with:client-id
and:client-secret
set accordingly. Seeresources/config-template.edn
for reference - Run
lein repl
- Run
(authorize!)
and give access via your browser - Copy the
code
query parameter from the example site you're redirected to - Run
(refresh-tokens! "...")
with the code you copied - Now you should be able to use the rest of the API routines
One of my playlists
had over 1400 songs and I wanted to follow all the artists in it.
I wrote the follow-playlist-artists!
routine to do it for me.