-
Notifications
You must be signed in to change notification settings - Fork 22
Retrieve rejected
Onur Akpolat edited this page Nov 1, 2016
·
1 revision
Retrieve all rejected connections of a user.
Endpoint
GET https://api.tapglue.com/0.4/me/connections/rejected
Example
curl https://api.tapglue.com/0.4/me/connections/rejected \
-u APP_TOKEN:SESSION_TOKEN \
-H "User-Agent: Tapglue Test UA" \
-H 'Accept: application/json'
Response
{
"incoming": [
{
"user_from_id_string": "19255970257440356",
"user_to_id_string": "18681402920800389",
"user_from_id": 19255970257440356,
"user_to_id": 18681402920800388,
"type": "friend",
"state": "rejected",
"enabled": false,
"created_at": "2016-01-11T14:18:06.930831179Z",
"updated_at": "2016-01-11T14:29:00.306670672Z"
}
],
"outgoing": [],
"users": [
{
"id_string": "19255970257440356",
"id": 19255970257440356,
"custom_id": "1",
"social_ids": {
"facebook": "fb12345678"
},
"is_friend": false,
"is_follower": false,
"is_followed": false,
"user_name": "Lawrence",
"first_name": "Lawrence",
"last_name": "Chloe",
"email": "lawrence@mail.com",
"url": "myapp://users/1",
"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
}
],
"incoming_connections_count": 1,
"outgoing_connections_count": 0,
"users_count": 1
}