Random Clojure functions for personal Spotify management
- Leiningen
- Spotify account
- Register a dummy application (eg.
spotify-repl) as shown here - Create a
resources/config.ednwith:client-idand:client-secretset accordingly. Seeresources/config-template.ednfor reference - Run
lein repl - Run
(authorize!)and give access via your browser - Copy the
codequery 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.