/PowerLFM

PowerShell module to leverage the Last.fm API

Primary LanguagePowerShellMIT LicenseMIT

PowerLFM

PowerShell Gallery Version AppVeyor Codecov GitHub

PowerShell module to leverage the Last.fm API.

All the API documentation can be found here.

How to use PowerLFM

  • Sign up for an account here to receive an API key and shared secret for this module.

  • These will be used to generate a token which will be used to create a session key.

$session = Request-LFMToken -ApiKey $ApiKey -SharedSecret $SharedSecret | Request-LFMSession
  • The contents of the $session variable are the session key and API key. Save this to the credential manager to use later.
$session | Add-LFMConfiguration
  • Alternatively, just pipe all the commands together
Request-LFMToken -ApiKey $ApiKey -SharedSecret $SharedSecret | Request-LFMSession | Add-LFMConfiguration
  • Make the configuration available in the current Powershell session.
Get-LFMConfiguration
  • Run a function from PowerLFM to test the configuration.
Get-LFMAlbumInfo -Artist Deftones -Album Gore
  • Add command to a variable to inspect the nested objects further.
$album = Get-LFMAlbumInfo -Artist Deftones -Album Gore
$album.Tracks
$album.Tags

Currently unsupported methods

Currently supported methods