Now playing

Spotify sign-in callback

GET/api/nowplaying/spotify/callback
Open. Open to everyone who can reach Tempolight.

Where Spotify sends the browser after signing in. Answers a small HTML page, not JSON (400 when it failed).

Query parameters

codestring

From Spotify.

statestring

From Spotify.

errorstring

From Spotify, when signing in failed.

Responses

200OKtext/html
string

A small page saying whether it worked.

400Signing in failed: the same page, saying why.text/html
string
Request
curl 'http://localhost:8080/api/nowplaying/spotify/callback'
Edit on GitHub