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

Show followers in "Who follows me?" #16

Closed TomasNilsson closed 9 years ago

TomasNilsson commented 9 years ago

Issue by tomas-nilsson Monday Mar 09, 2015 at 04:27 GMT Originally opened as https://github.ucsb.edu/tomas-nilsson/SpotiTraceApp/issues/16


How to get list of users that have me as master user:

curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H 'Authorization: Token token="wsjdhkjhksfdjhk"' -X GET http://localhost:3000/api/users/followers

The response looks like this:

[{
   "id":1,
   "username":"manutdtomas",
   "distance":14.9551942123904,
   "friend":true
},{
   "id":2,
   "username":"test",
   "distance":0.0,
   "friend":false
}]