Skip to content

Instantly share code, notes, and snippets.

@nvkiet
Created May 18, 2016 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvkiet/5783d19a97e2f4ff39d0d7837e0f799f to your computer and use it in GitHub Desktop.
Save nvkiet/5783d19a97e2f4ff39d0d7837e0f799f to your computer and use it in GitHub Desktop.
GET-users/me

#Users Resources

GET users/me

##Description Get my User object


Parameters

  • access_token - Application's access token.

Return format

  • User - My user object

For notifications object,

  • ask refers to Answers
  • suggestions refers to Trips
  • friends refers to Like
  • chat refers to Mingle

##Errors

  • HTTP 401 - Invalid Token

Example

Request

users/me?access_token=abc.....

Return

{
    "first_name": "Jiew Meng",
    "last_name": "Lim",
    "birthday": "07/11/1989",
    "from_location": null,
    "profile_images": [
        "https://scontent-a.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/p720x720/10366223_732399046846135_4211476527615735601_n.jpg?oh=0f68ddcfbed7b93a53b171174cb3f143&oe=5563D170",
        "https://scontent-a.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10672285_696612027091504_4613190257881141927_n.jpg?oh=f009c2273dc23e247926b771e51a2216&oe=55686574",
        "https://scontent-a.xx.fbcdn.net/hphotos-xaf1/t31.0-8/s720x720/10704363_696542997098407_25401312153208045_o.jpg"
    ],
    "institution": "Nanyang Polytechnic",
    "current_location": null,
    "email": null,
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI1NGMwYTM3MzNlNDdiNDIzMmVlNWJmY2MiLCJleHAiOiIyMDE2LTAxLTIyVDA3OjE0OjU5Ljk3OFoifQ.hTFb63MbpQSPZ39sVdjvbDBXsgGJOnr9NRLKWSllbgA",
    "description": "",
    "activated": false,
    "notifications": {
        "ask": true,
        "trips": true,
        "friends": false,
        "chat": true
    },
    "id": "54c0a3733e47b4232ee5bfcc"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment