You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,25 +10,25 @@ All the endpoints will respond with `200` if successful or:
10
10
-`503`, if the session is reconnecting (`Retry-After` is always 10 seconds)
11
11
12
12
### Player
13
-
-`POST \player\load` Load a track from a given URI. The request body should contain two parameters: `uri` and `play`.
14
-
-`POST \player\pause` Pause playback.
15
-
-`POST \player\resume` Resume playback.
16
-
-`POST \player\next` Skip to next track.
17
-
-`POST \player\prev` Skip to previous track.
18
-
-`POST \player\set-volume` Set volume to a given `volume` value from 0 to 65536.
19
-
-`POST \player\volume-up` Up the volume a little bit.
20
-
-`POST \player\volume-down` Lower the volume a little bit.
21
-
-`POST \player\current` Retrieve information about the current track (metadata and time).
13
+
-`POST /player/load` Load a track from a given URI. The request body should contain two parameters: `uri` and `play`.
14
+
-`POST /player/pause` Pause playback.
15
+
-`POST /player/resume` Resume playback.
16
+
-`POST /player/next` Skip to next track.
17
+
-`POST /player/prev` Skip to previous track.
18
+
-`POST /player/set-volume` Set volume to a given `volume` value from 0 to 65536.
19
+
-`POST /player/volume-up` Up the volume a little bit.
20
+
-`POST /player/volume-down` Lower the volume a little bit.
21
+
-`POST /player/current` Retrieve information about the current track (metadata and time).
22
22
23
23
### Metadata
24
-
-`POST \metadata\{type}\{uri}` Retrieve metadata. `type` can be one of `episode`, `track`, `album`, `show`, `artist` or `playlist`, `uri` is the standard Spotify uri.
25
-
-`POST \metadata\{uri}` Retrieve metadata. `uri` is the standard Spotify uri, the type will be guessed based on the provided uri.
24
+
-`POST /metadata/{type}/{uri}` Retrieve metadata. `type` can be one of `episode`, `track`, `album`, `show`, `artist` or `playlist`, `uri` is the standard Spotify uri.
25
+
-`POST /metadata/{uri}` Retrieve metadata. `uri` is the standard Spotify uri, the type will be guessed based on the provided uri.
26
26
27
27
### Search
28
-
-`POST \search\{query}` Make a search.
28
+
-`POST /search/{query}` Make a search.
29
29
30
30
### Tokens
31
-
-`POST \token\{scope}` Request an access token for a specific scope (or a comma separated list of scopes).
31
+
-`POST /token/{scope}` Request an access token for a specific scope (or a comma separated list of scopes).
32
32
33
33
### Events
34
34
You can subscribe for players events by creating a WebSocket connection to `/events`.
0 commit comments