So I'm struggling to decode Spotify's Web Authentication set up. What I'm looking to do is create a bash script to add the currently playing song to a predetermined playlist. The aim is to have it so I can push a keyboard shortcut and save it.
So far I have Keyboard Maestro accepting a Hot Key and running some Applescript to pull the TrackID from Spotify. Is it possible to have a Bash script (which Keyboard Maestro can run) do a POST request.
I can run unauthenticated API searches but it's authentication where I'm hitting issues.