Skip to content

Users retrieve user

Onur Akpolat edited this page Oct 27, 2016 · 1 revision

Retrieve a single user profile.

Endpoint

GET https://api.tapglue.com/0.4/users/:UserID

Example

curl https://api.tapglue.com/0.4/users/:UserID \
    -u [[app:key]]:SESSION_TOKEN \
    -H "User-Agent: Tapglue Test UA" \
    -H 'Accept: application/json'

Response

{
  "id_string": "19136110722551396",
  "id": 19136110722551396,
  "custom_id": "1",
  "social_ids": {
    "facebook": "fb12345678"
  },
  "friend_count": 0,
  "follower_count": 0,
  "followed_count": 0,
  "user_name": "Vincent",
  "first_name": "Vincent",
  "last_name": "Heather",
  "email": "vincent@mail.com",
  "url": "myapp://users/1",
  "last_login": "2016-01-10T18:27:10.828760235Z",
  "metadata": {
    "foo": "bar"
  },
  "images": {
    "avatar": {
      "url": "https://mydomain.com/users/1/avatar.jpg",
      "width": 400,
      "height": 400
    },
    "avatar_thumb": {
      "url": "https://mydomain.com/users/1/avatar_thumb.jpg",
      "width": 150,
      "height": 150
    }
  },
  "created_at": "2016-01-10T18:27:10.968461027Z",
  "updated_at": "2016-01-10T18:27:10.968461027Z",
  "enabled": true
}
Clone this wiki locally