Skip to content
jorge-d edited this page Feb 4, 2013 · 1 revision

List the members of your family

Route: GET /api/v1/family

This WILL list all the members of your family with their last known position or an error if you are not part of a family.

Example:

curl -X GET \
   -H "Accept: application/json" \
   -d 'auth_token=sYcyvuHUopjT46iMhkU5' \
    http://localhost:3001/api/v1/family

Will produce the following output:

[
  {
    "id": 2,
    "first_name": "Jose",
    "last_name": "Rodrigues",
    "nickname": "rodrig_d",
    "last_sign_in": "31 Jan 13 18:28",
    "position": {
      "latitude": 48.811322,
      "longitude": 2.362779,
      "date": "02 Feb 13 18:28"
    }
  },
  {
    "id": 3,
    "first_name": "Julien",
    "last_name": "Di-marco",
    "nickname": "lifely",
    "last_sign_in": "02 Feb 13 16:28",
    "position": {
      "latitude": 33.783428,
      "longitude": -118.115129,
      "date": "02 Feb 13 18:28"
    }
  },
  {
    "id": 4,
    "first_name": "Charles",
    "last_name": "Circlaeys",
    "nickname": "furyfeuille",
    "last_sign_in": "26 Jan 13 18:28",
    "position": {
      "latitude": 33.761845,
      "longitude": -118.157787,
      "date": "02 Feb 13 18:28"
    }
  },
  {
    "id": 5,
    "first_name": "Younes",
    "last_name": "Serraj",
    "nickname": "yoones",
    "last_sign_in": "02 Feb 12 18:28",
    "position": {
      "latitude": 48.81561,
      "longitude": 2.363155,
      "date": "02 Feb 13 18:28"
    }
  },
  {
    "id": 6,
    "first_name": "Nicolas",
    "last_name": "Berhault",
    "nickname": "berhau_n",
    "last_sign_in": "02 Feb 13 18:27",
    "position": {
      "latitude": 33.138521,
      "longitude": -117.153397,
      "date": "02 Feb 13 18:28"
    }
  },
  {
    "id": 1,
    "first_name": "Dimitri",
    "last_name": "Jorge",
    "nickname": "keny",
    "last_sign_in": "04 Feb 13 18:08",
    "position": {
      "latitude": 0.0,
      "longitude": -8.838501,
      "date": "04 Feb 13 17:54"
    }
  }
]
Clone this wiki locally