Simple PHP script to interact with Spotify API, intended for use with microcontrollers.
-
Server Side:
- Open
api.php: Fill inYOUR_CLIENT_IDandYOUR_CLIENT_SECRET. - Open
callback.php: Fill inYOUR_CLIENT_ID,YOUR_CLIENT_SECRET, andYOUR_REDIRECT_URI.
- Open
-
Hardware Side (Arduino/ESP):
- Open
spotify/spotify.ino. - Fill in
YOUR_WIFI_SSIDandYOUR_WIFI_PASSWORD. - Update
IPAddress server(...)with the local IP of the machine running the PHP scripts.
- Open
-
Authorize:
- Open
callback.phpin your browser to log in to Spotify.
- Open