Now playing

Disconnect Spotify

DEL/api/nowplaying/spotify
Admin. Needs an unlock token (x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.

Forgets the Spotify sign-in.

Responses

200OKapplication/json
enabledboolean
supportedboolean
platformstring
statestring
One of "ok" "starting" "unavailable" "error" "off"
messagestring | null
methodstring | null
One of "osascript" "playerctl" "dbus-send" "powershell" null
trackobject | null

{source, app, device, title, artist, album, dur, pos, playing, posKnown, remembered, following}.

spotifyobject
403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X DELETE 'http://localhost:8080/api/nowplaying/spotify'
Response
{
  "enabled": true,
  "supported": true,
  "platform": "darwin",
  "state": "ok",
  "message": null,
  "method": "osascript",
  "track": null,
  "spotify": {
    "clientId": "",
    "connected": false,
    "error": null,
    "redirectUri": "http://127.0.0.1:8080/api/nowplaying/spotify/callback"
  }
}
Edit on GitHub