https://github.com/Spotifyd/spotifyd-http
A web server that controls Spotify Connect devices.
https://github.com/Spotifyd/spotifyd-http
Last synced: about 1 year ago
JSON representation
A web server that controls Spotify Connect devices.
- Host: GitHub
- URL: https://github.com/Spotifyd/spotifyd-http
- Owner: Spotifyd
- Archived: true
- Created: 2016-08-23T22:32:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-20T09:04:47.000Z (over 6 years ago)
- Last Synced: 2024-11-05T19:44:35.603Z (over 1 year ago)
- Language: Rust
- Size: 23.4 KB
- Stars: 38
- Watchers: 8
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DEPRECATED
I have stopped working on this API as Spotify have released an official API with a similar use case:
https://developer.spotify.com/web-api/web-api-connect-endpoint-reference/
# Spotifyd-http
This web server remote controls Spotify Connect devices via HTTP requests.
## Methods
These are the currently supported methods:
### GET /devices
Returns a list of device ID/Name pairs.
### PUT /device_id/{play, pause, next, prev}
Plays, pauses, skips, and returns to previous song.
### {GET, PUT, POST} /device_id/tracks
Gets, replaces, or appends tracks to the playlist. The `PUT` and `POST` take
one or more `id` parameters. Example:
```bash
TRACKS="id=2BhU0Hl5OatWiCW93pE2b8&id=731OW49heGHCMrMOREHYlY&id=6zAPaRDoT99ThFtIXUJwhO"
curl -X POST -d "$TRACKS" 127.0.0.1:6767/device_id/tracks
```