https://github.com/andyklimczak/musicplayerserver
musicplayerserver.herokuapp.com [DEAD]
https://github.com/andyklimczak/musicplayerserver
Last synced: 2 months ago
JSON representation
musicplayerserver.herokuapp.com [DEAD]
- Host: GitHub
- URL: https://github.com/andyklimczak/musicplayerserver
- Owner: andyklimczak
- Archived: true
- Created: 2014-10-08T13:26:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-14T18:36:54.000Z (over 10 years ago)
- Last Synced: 2024-10-28T16:53:46.211Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 595 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
= music player readme (Group 1, champion 9:10-10:05 mwf)
This is the accompanying server that works along with our android app. The server is hosted on heroku. The server stores the consistant data of the user's top played songs and artists. This information is on the profile page.
url: musicplayerserver.herokuapp.com
GET
/check
makes sure the server it awake
returns the current server timePOST
/log_user
either creates a user if a user with the facebook id doesn't exist
or returns the user with that facebook_id
params = email, name, facebook_id
returns the userPOST
/update_session
finds the user by facebook id, then updates the user's artist and song hash to be the current top songs and artists
params = facebook_id, songs: {title1: count1, title2:count, ... }, artists : {artist1: artistcount1, artist2: artistcount2, ...}