Automatically generate a spotify playlist from the most recently played music on the triplej radio station.
Getting Started
Register your application on the developer dashboard and obtain the client_id and a client_secret.
Use the authorization code on the official spotify web-api-auth-examples repo to obtain a refresh_token. Make sure to grant access to the correct playlist type when fetching this token. You can read about scopes here. As my playlist is public I only need the playlist-modify-public scope.
Create a playlist in spotify and copy the link to it. Note we just want the playlist_id.