phenomeno / playlist-deli

Serving fresh playlists.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playlist Deli

sammie

Serving fresh playlists.

Usage

Obtain credentials

$ bundle install
$ ruby server.rb

Sign in to Spotify at http://localhost:4567/.

Create sample playlists based on what artists you like

require_relative 'app'
user_hash = JSON.parse(File.read('credentials.json'))
spotify_user = RSpotify::User.new(user_hash)

playlist_sampler = PlaylistDeli::Tasks::Sampler.new(spotify_user)

# ['recent', 'short_term', 'medium_term', 'long_term']
playlist_sampler.create_new_mix!('recent')

About

Serving fresh playlists.


Languages

Language:Ruby 100.0%