Now playing

Start the Spotify sign-in

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

Answers the Spotify sign-in address (PKCE, no client secret). Open it; Spotify comes back to redirectUri, which must be added to your Spotify app.

Responses

200OKapplication/json
urlstring
redirectUristring
403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X POST 'http://localhost:8080/api/nowplaying/spotify/login'
Response
{
  "url": "https://accounts.spotify.com/authorize?client_id=…",
  "redirectUri": "http://127.0.0.1:8080/api/nowplaying/spotify/callback"
}
Edit on GitHub