Get Your Information

By December 6, 2017Your Information

Returns your information.

URL

GET https://secure.gaug.es/me

Request

curl -H "X-Gauges-Token: <token>" https://secure.gaug.es/me

Response

{
  "user": {
    "name": "John Doe",
    "urls": {
      "self": "https://secure.gaug.es/me",
      "gauges": "https://secure.gaug.es/gauges",
      "clients": "https://secure.gaug.es/clients"
    },
    "id": "4e206261e5947c1d38000001",
    "last_name": "Doe",
    "email": "john@doe.com",
    "first_name": "John"
  }
}

Update Your Information

Updates and returns your information with the updates applied.

URL

PUT https://secure.gaug.es/me

Parameters

first_name optional Your first name
last_name optional Your last name

Request

curl -H "X-Gauges-Token: <token>" \
     -X PUT \
     -d "first_name=Joe" \
     https://secure.gaug.es/me

Response

{
  "user": {
    "name": "Joe Doe",
    "urls": {
      "self": "https://secure.gaug.es/me",
      "gauges": "https://secure.gaug.es/gauges",
      "clients": "https://secure.gaug.es/clients"
    },
    "id": "4e206261e5947c1d38000001",
    "last_name": "Doe",
    "email": "john@doe.com",
    "first_name": "Joe"
  }
}

Leave a Reply