Sitelet https://github.com/bysoft/digidj-server
Skip to content
 
 

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digidj.us

Setup

Get the spotify server. Our Sinatra app (coming soon) will make REST requests to this server.

Put these files (attached) in the same folder.

Install libspotify: http://developer.spotify.com/en/libspotify/overview/ On Mac it's just brew install libspotify

Install the python bindings for it: git clone https://github.com/mopidy/pyspotify cd pyspotify python setup.py build sudo python setup.py install

Run the server: chmod 700 hackathon.py ./hackathon.py -u brianyang -p spot12

To Kill: ps -a kill PID # where PID is the one that looks like: 31569 ttys009 0:01.63 python ./hackathon.py -u brianyang -p spot12

To Test: List tracks on playlist: curl http://localhost:8081/list/spotify:user:brianyang:playlist:7Bdmon1qvlkMQjIIkMKdeC

Optional: To view the tracks updating in the Spotify Mac app, log in with username: brianyang password: spot12 and click on General Assembly playlist

Add track to playlist: curl http://localhost:8081/add/spotify:user:brianyang:playlist:7Bdmon1qvlkMQjIIkMKdeC/spotify:track:6ux0YZaTijSxfNLgmL27rV/2

2 is the position

Delete track from playlist: curl http://localhost:8081/delete/spotify:user:brianyang:playlist:7Bdmon1qvlkMQjIIkMKdeC/spotify:track:6ux0YZaTijSxfNLgmL27rV

About

DigiDJ lets you pay w Venmo to vote songs up on a Spotify playlist for a foursquare venue.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors