Closed TomasNilsson closed 9 years ago
Comment by tomas-nilsson Monday Mar 02, 2015 at 03:54 GMT
How to add master user (the user you follow):
curl -v -H "Accept: application/json" -H "Content-type: application/json" -H 'Authorization: Token token="dsajhgsljkhvdsahlskfhbcöj"' -X POST -d ' {"id":"1"}' http://localhost:3000/api/users/master_user
id is the id of the user you want to follow.
How to remove a master user:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -H 'Authorization: Token token="dsajhgsljkhvdsahlskfhbcöj"' -X POST -d ' {"id":"1"}' http://localhost:3000/api/users/master_user/remove
id is the id of the user you want to unfollow.
Comment by tomas-nilsson Thursday Mar 05, 2015 at 19:55 GMT
Use Android SDK player? See https://developer.spotify.com/android-sdk-docs/com/spotify/sdk/android/playback/Player.html#queue-java.lang.String- Include play button for each song in the list. If play button is clicked the button will be changed to a pause button and the song will be played in our app (instead of the Spotify app). In order to start a specific song the user needs to have Spotify Premium.
Alternative: Play song in Spotify app and use temporary playlist? See http://stackoverflow.com/questions/8623693/add-a-song-to-the-current-play-queue-in-a-spotify-app
Issue by tomas-nilsson Sunday Feb 15, 2015 at 05:40 GMT Originally opened as https://github.ucsb.edu/tomas-nilsson/SpotiTraceApp/issues/7
When listening to a person the app locks to that person and keeps listening to his/her songs.
Example: Johannes listens to song A. Tomas starts following him and starts playing song A from the beginning. When the song ends for Tomas, he asks the server what Johannes listens to and starts that song.
The master user can see who follows him/her.