lennyomg / Spotify-PowerShell

PowerShell commands for Spotify Web API.
11 stars 2 forks source link

Issues Importing Modules #4

Open cbs927 opened 4 weeks ago

cbs927 commented 4 weeks ago

Hello,

After creating the Spotify app and attempting to run Import-Module Spotify, I'm confronted with a slew of errors. Would love to take advantage of these scripts but can't get past importing of the modules. Windows 11 Professional latest. Powershell host: Version : 5.1.22621.4111

Can you assist?

PS C:\Windows\system32> Import-Module Spotify At C:\Program Files\WindowsPowerShell\Modules\Spotify\Spotify.psm1:99 char:13

Import-Module : The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) At line:1 char:1

lennyomg commented 4 weeks ago

Use PowerShell 7. PoweShell 5 is not supported due to new syntax.

cbs927 commented 4 weeks ago

Thank you. Helpful.

Can you clarify the usage of the New-SpotifyAccessToken call? Do I include my Spotify ClientID or leave -ClientID? Did I format the spotify app id correctly?

New-SpotifyAccessToken -CliendId "SpotPower"

New-SpotifyAccessToken: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.