The problem we saw with many social gatherings is that people want to play their own music, resulting in random people taking the hosts' phone to play music. Also, everyone is too lazy to add music to a collaborative playlist. My solution takes an N number of playlists and an X amount of minutes (party duration) and selects an equal amount of minutes from each playlist to total the party duration. Currently, it selects songs randomly from each playlist; however, I would like to add more data science into it including
- Song popularity
- Repeated songs
- Cross reference with Global top 100 songs
- Event type - party, gala, etc.
Spotify Accounts Authentication Examples
This project contains basic demos showing the different OAuth 2.0 flows for authenticating against the Spotify Web API.
These examples cover:
- Authorization Code flow
- Client Credentials flow
- Implicit Grant flow
Once installed, clone the repository and install its dependencies running:
$ npm install
Running the examples
In order to run the different examples, open the folder with the name of the flow you want to try out, and run its
app.js file. For instance, to run the Authorization Code example do:
$ cd authorization_code $ node app.js
http://localhost:8888 in a browser.
Using your own credentials
The examples contains a working client ID and secret key. Note, however, that they might be rate limited if they are used frequently. If you are planning to create an application, we recommend you register your app and get your own credentials instead of using the ones in this project.
Go to My Applications on Spotify Developer and create your application. For the examples, we registered these Redirect URIs:
Once you have created your app, replace the
client_secret in the examples with the ones you get from My Applications.