nleroy917 / spottydata-api

Backend and Web API for spottydata.com
MIT License
7 stars 0 forks source link

New Endpoint: <playlis_id>/analysis/keys #6

Closed nleroy917 closed 4 years ago

nleroy917 commented 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, ...} }

This will allow for easy plotting in Chart.JS as a bar chart

nleroy917 commented 4 years ago

Route created and tested - closing issue