TomasNilsson / SpotiTraceApp

Android app for the final project in ECE 150 - Mobile Embedded Systems
https://sites.google.com/site/spotitrace/
2 stars 0 forks source link

Send location to server #1

Closed TomasNilsson closed 9 years ago

TomasNilsson commented 9 years ago

Issue by tomas-nilsson Sunday Feb 15, 2015 at 05:40 GMT Originally opened as https://github.ucsb.edu/tomas-nilsson/SpotiTraceApp/issues/1


When new song is started, paused/stopped and when you want to see what users nearby listen to.

TomasNilsson commented 9 years ago

Comment by tomas-nilsson Saturday Feb 28, 2015 at 22:41 GMT


How to send location to our server:

curl -v -H "Accept: application/json" -H "Content-type: application/json" -H 'Authorization: Token token="dsajhgsljkhvdsahlskfhbcöj"' -X POST -d ' {"location":{"latitude":"27.42327","longitude":"31.1414421"}}'  http://localhost:3000/api/locations