Its looks like when using rainmeter the auth key are not correctly pasted to powershell
So this is the command i use in Powershell:
Code: Select all
curl.exe -X "GET" "https://api.spotify.com/v1/me/player/currently-playing" -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Bearer MYAUTHTOKEN" -o Spotify.json
And This is rainmeter code i use:
Code: Select all
[mTrack]
Measure=NowPlaying
PlayerName=Spotify
PlayerType=TITLE
OnChangeAction=[!CommandMeasure MeasureRun "Run"]
[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=curl.exe -X "GET" "https://api.spotify.com/v1/me/player/currently-playing" -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Bearer MYAUTHTOKEN"
State=Show
OutputType=ANSI
OutputFile=#CURRENTPATH#Spotify.json
https://developer.spotify.com/console/get-users-currently-playing-track/?market=&additional_types=
If anyone have a little idea of what the issue can be?
Edit:I posted this in the wrong category sorry