
niwamo/ SpotifyUtils
Photo Credits: Unsplash
Introduction
SpotifyUtils is a PowerShell module for managing your Spotify tracks and playlists.
It also marks the first time I've published a personal project to a major open-source repository (PSGallery). It was fun to "productize" a project, though The Mythical Man Month's claim held true: the semi-professionalizing of the code, tests, documentation, and continuous deployment took at least nine times the effort as the original, fully functional scripts.
Should you choose to try it out, you can install it with PowerShell's native Install-Module
command (e.g. Install-Module SpotifyUtils
).
Notable Detail(s)
The Spotify API requires an interactive OAuth flow to access 'private' data such as your liked tracks. There's no ability to simply generate fully-privileged personal API keys. So, I leveraged a trick I'd seen elsewhere: the module fires up a lightweight web server to receive an OAuth redirect, then generates the authentication prompt URL and invokes the user's default web browser. Pretty neat.
Source Code
You can find the source code here and the published package here.