Open mhgbrg opened 8 years ago
To link to the song, use the Spotify search API to search for the artist and the song name, and take the first hit.
@mhgbrg Firstly, thanks for sharing this solution with us. For curiosity, what do you do to gets te currently song? Are you get the first position of api 's request?
Spotify currently doesn't have any endpoint for fetching the currenty playing track for a user. Though a workaround is to connect your Spotify account to Last.fm and use their API. See http://www.last.fm/api/show/user.getRecentTracks.