Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 969 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 969 Bytes

spotify-repl

Random Clojure functions for personal Spotify management

Dependencies

  • Leiningen
  • Spotify account

Setup

  1. Register a dummy application (eg. spotify-repl) as shown here
  2. Create a resources/config.edn with :client-id and :client-secret set accordingly. See resources/config-template.edn for reference
  3. Run lein repl
  4. Run (authorize!) and give access via your browser
  5. Copy the code query parameter from the example site you're redirected to
  6. Run (refresh-tokens! "...") with the code you copied
  7. Now you should be able to use the rest of the API routines

Use cases

Follow all artists in a playlist of yours

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.