User Object

Field Type Description
created int The date the user joined Yappy (unix timestamp)
Example: 1448165156010
email string Email address of the user
Example: "elon@teslamotors.com"
name string The users name
Example: "Elon Musk"
avatar_url string The URL of the user's avatar
Example: "https://lh6.googleusercontent.com/-kQTaF7dpodc/AAAAAAAAAAI/AAAAAAAAEqQ/8nfqJa01EuU/photo.jpg"
pro bool Whether or not the user is a Yappy Pro user
Example: false
Example
{
    "created": 1448165156010,
    "email": "elon@teslamotors.com",
    "name": "Elon Musk",
    "avatar_url": "https://lh6.googleusercontent.com/-kQTaF7dpodc/AAAAAAAAAAI/AAAAAAAAEqQ/8nfqJa01EuU/photo.jpg",
    "pro": false
}

get-user

Gets information about the user associated with the given Access-Token.

Call
GET https://api.yappy.im/v1/users/me

Request
none

Response
User Object

Example: Get Current User
Request
curl --header 'Access-Token: <your_access_token_here>' \
    https://api.yappy.im/v1/users/me
Response
{
  "created": 1448165156010,
  "email": "elon@teslamotors.com",
  "name": "Elon Musk",
  "avatar_url": "https://lh6.googleusercontent.com/-kQTaF7dpodc/AAAAAAAAAAI/AAAAAAAAEqQ/8nfqJa01EuU/photo.jpg",
  "pro": false
}