Skip to content

A powershell module used to interact with the Spotify API

License

Notifications You must be signed in to change notification settings

wardbox/spotishell

Repository files navigation

Spotishell

A powershell module used to interact with the Spotify API.

It handles all Spotify Web API endpoints including control of players (https://developer.spotify.com/documentation/web-api/reference/)

Prerequisites

Setup

  1. Install from PSGallery
Install-Module Spotishell
  1. Import module
Import-Module Spotishell
  1. List commands available in the module. Familiarize yourself with these.
Get-Command -Module Spotishell
  1. Set up your credential (use keys from your registered app referenced in the prerequisites)
New-SpotifyApplication -ClientId "blahblahblah" -ClientSecret "blahblahblahblah"
  1. Add "http://localhost:8080/spotishell" as a redirect URL in your Spotify app settings spotify developer Dashboard

  2. Give it a whirl!

Start-Playback -TrackUris @('spotify:track:4juzduULFJiZVIcrC1tkxE') # Start Banquet of Bloc Party on the first available device
Search-Item -Query 'Bloc Party' -Type Artist # look for Bloc Party artist
  1. Enjoy the music and bountiful data :^)
"Music is the silence between the notes"
  - Claude Debussy

Help

See HELP for the synopsis, syntax, and parameters for each of the cmdlets.

If you feel so inclined, buy me a coffee