Skip to content

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

Notifications You must be signed in to change notification settings

ma11hew28/digidj-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 REDACTED

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 REDACTED

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: REDACTED 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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages