Users login user

Alexander Simmerl edited this page Nov 27, 2016 · 2 revisions

Login users will generate a valid session token if you're using our user management.

Endpoint

POST https://api.tapglue.com/0.4/me/login

Params

Name Type
user_name string
email string
password string

Example

curl https://api.tapglue.com/0.4/me/login \
    -u [[app:key]]: \
    -H "User-Agent: Tapglue Test UA" \
    -H 'Accept: application/json' \
    -H "Content-Type: application/json" \
    -d '{"email": "marc@mail.com", "password": "password"}'

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",
  "session_token": "P2MrdEFqK1s/LStqfGMpZkwxPnI=",
  "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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.