-
Notifications
You must be signed in to change notification settings - Fork 22
Retrieve friends
Onur Akpolat edited this page Nov 1, 2016
·
1 revision
Retrieve friends of a user.
Endpoint
GET https://api.tapglue.com/0.4/me/friends
Example
curl https://api.tapglue.com/0.4/me/friends \
-u APP_TOKEN:SESSION_TOKEN \
-H "User-Agent: Tapglue Test UA" \
-H 'Accept: application/json'
Response
{
"users": [
{
"id_string": "19136842595045509",
"id": 19136842595045508,
"custom_id": "1",
"social_ids": {
"facebook": "fb12345678"
},
"is_friend": true,
"is_follower": false,
"is_followed": false,
"user_name": "Cruz",
"first_name": "Cruz",
"last_name": "Karyn",
"email": "cruz@mail.com",
"url": "myapp://users/3",
"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
}
},
"enabled": true
}
],
"users_count": 1
}