Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.1 KB

11_Users.md

File metadata and controls

60 lines (44 loc) · 1.1 KB

User Information

Retrieving User Information

This call returns the user information for which the Client is acting on behalf of.

Definition

GET /api/v1/me

Example Request

$ curl -H 'Authorization: Bearer <your access token>' \
  'https://api-news.layervault.com/api/v1/me'

Example Response

{
  "me": {
    "created_at": "2012-11-15T04:48:45Z",
    "first_name": "Kelly",
    "job": "Founder at LayerVault",
    "last_name": "Sutton",
    "portrait_url": "https://news.layervault.com/cats.gif"
  }
}

Retrieving Information About Other Users

This call returns information about the requested user.

Definition

GET /api/v1/users/:id

Example Request

$ curl -H 'Authorization: Bearer <your access token>' \
  'https://api-news.layervault.com/api/v1/users/1'

Example Response

{
  "me": {
    "created_at": "2012-11-15T04:48:45Z",
    "first_name": "Kelly",
    "job": "Founder at LayerVault",
    "last_name": "Sutton",
    "portrait_url": "https://news.layervault.com/cats.gif",
    "cover_photo_url": "https://news.layervault.com/dogs.gif"
  }
}