I'm trying to build a AlarmClock for Spotify and make Spotify play a song when the alarm is triggered.
The clock is working so all I need know is to get the song playing then the function is triggered. How can I write that?
I wanna use a Spotify Url for making it as easy as possible.
Take a look at the documentation for the Player object.
models.player.play("spotify:track:6JEK0CvvjDjjMUBFoXShNZ");