Modified and further developed code based on Spotifys spshell example. I would love to get any thoughts on makeing this more threaded, but consider that libspotify only supports one session per process...
GET /help
GET /search/{query}
GET /browse/{spotifyid}
GET /albums/{artistid}
GET /toplist/{charts} || {artists|albums|tracks / global | region/countryCode | user/userName}
- Make sure you have the required libraries
- jansson > 2.0
- libspotify > 10
- Optional deps
- lmysql
-
Update
spshell.h
with your credentials. A Spotify premium account is necessary. -
Copy
appkey.c
into the directory and runmake
. -
run ./spshell -p PORT or just ./spshell to run on default port, 5112