Closed nleroy917 closed 4 years ago
Create a new API endpoint to get the key data from Spotify for a playlist, parse the data and return it in proper formatting for easy Front-End Chart.JS integration.
Required Params: Spotify Playlist ID Number Headers: Authorization: <access_token> Route: <playlist_id>/analysis/keys Return Type: JSON Object Format: {major: {A: 3, A#: 4, B: 2, ...}, minor: {A: 6, A#: 2, B: 7, ...} }
Spotify Playlist ID Number
Authorization: <access_token>
<playlist_id>/analysis/keys
JSON Object
{major: {A: 3, A#: 4, B: 2, ...}, minor: {A: 6, A#: 2, B: 7, ...} }
This will allow for easy plotting in Chart.JS as a bar chart
Route created and tested - closing issue
Create a new API endpoint to get the key data from Spotify for a playlist, parse the data and return it in proper formatting for easy Front-End Chart.JS integration.
Required Params:
Spotify Playlist ID Number
Headers:Authorization: <access_token>
Route:<playlist_id>/analysis/keys
Return Type:JSON Object
Format:{major: {A: 3, A#: 4, B: 2, ...}, minor: {A: 6, A#: 2, B: 7, ...} }
This will allow for easy plotting in Chart.JS as a bar chart