sa-mw-dach / opendj

Apply Open Source principles to the Dance Floor! MOVED TO https://github.com/opendj/opendj
https://github.com/opendj/opendj
GNU General Public License v3.0
6 stars 9 forks source link

Implement Spotify Track Detail Service #65

Closed DanielFroehlich closed 5 years ago

DanielFroehlich commented 5 years ago

To get details about a track for adding it to the playlist, like genre, bpm, energy level etc.

DanielFroehlich commented 5 years ago

Done!
Example Request: http://localhost:8080/backend-spotifyprovider/trackDetails?event=4711&track=1cS0TgbR263ey9jn0MwD2s Response:

{
  "id": "1cS0TgbR263ey9jn0MwD2s",
  "name": "River (feat. Ed Sheeran)",
  "artist": "Eminem, Ed Sheeran",
  "year": 2017,
  "image_url": "https://i.scdn.co/image/afb03a2dacfb1c31b795ae4ea9df1df780614455",
  "duration_ms": 221013,
  "preview": "https://p.scdn.co/mp3-preview/7f35be2ffeab34c76c1c4ca35e69ecf821988909?cid=ae5f9971dec243f98cf746c496181712",
  "popularity": 79,
  "provider": "spotify",
  "genre": "detroit hip hop, g funk, hip hop",
  "danceability": 75,
  "energy": 75,
  "acousticness": 14,
  "instrumentalness": 0,
  "liveness": 7,
  "happiness": 66,
  "bpm": 90
}