Retrieve confirmed

Onur Akpolat edited this page Nov 1, 2016 · 1 revision

Retrieve all confirmed connections of a user.

Endpoint

GET https://api.tapglue.com/0.4/me/connections/confirmed

Example

curl https://api.tapglue.com/0.4/me/connections/confirmed \
    -u APP_TOKEN:SESSION_TOKEN \
    -H "User-Agent: Tapglue Test UA" \
    -H 'Accept: application/json'

Response

{
  "incoming": [],
  "outgoing": [
    {
      "user_from_id_string": "18681402920800389",
      "user_to_id_string": "19136842595045509",
      "user_from_id": 18681402920800388,
      "user_to_id": 19136842595045508,
      "type": "follow",
      "state": "confirmed",
      "enabled": true,
      "created_at": "2016-01-10T19:30:57.306462605Z",
      "updated_at": "2016-01-10T19:30:57.306462605Z"
    },
    {
      "user_from_id_string": "18681402920800389",
      "user_to_id_string": "18828624887025797",
      "user_from_id": 18681402920800388,
      "user_to_id": 18828624887025796,
      "type": "friend",
      "state": "confirmed",
      "enabled": true,
      "created_at": "2016-01-10T19:33:57.548155713Z",
      "updated_at": "2016-01-10T19:33:57.548155713Z"
    },
    {
      "user_from_id_string": "18681402920800389",
      "user_to_id_string": "19136110722551396",
      "user_from_id": 18681402920800388,
      "user_to_id": 19136110722551396,
      "type": "friend",
      "state": "confirmed",
      "enabled": true,
      "created_at": "2016-01-10T19:33:57.556968398Z",
      "updated_at": "2016-01-10T19:33:57.556968398Z"
    },
    {
      "user_from_id_string": "18681402920800389",
      "user_to_id_string": "19136842595045509",
      "user_from_id": 18681402920800388,
      "user_to_id": 19136842595045508,
      "type": "friend",
      "state": "confirmed",
      "enabled": true,
      "created_at": "2016-01-10T19:33:57.560993791Z",
      "updated_at": "2016-01-10T19:33:57.560993791Z"
    }
  ],
  "users": [
    {
      "id_string": "18828624887025797",
      "id": 18828624887025796,
      "custom_id": "2",
      "social_ids": {
        "facebook": "fb1112131415"
      },
      "is_friend": true,
      "is_follower": false,
      "is_followed": false,
      "user_name": "neal",
      "first_name": "Neal",
      "last_name": "Smith",
      "email": "neal@mail.com",
      "url": "myapp://user/2",
      "metadata": {
        "fav_product": "product_345",
        "score": 90
      },
      "enabled": true
    },
    {
      "id_string": "19136110722551396",
      "id": 19136110722551396,
      "custom_id": "1",
      "social_ids": {
        "facebook": "fb12345678"
      },
      "is_friend": true,
      "is_follower": false,
      "is_followed": false,
      "user_name": "Vincent",
      "first_name": "Vincent",
      "last_name": "Heather",
      "email": "vincent@mail.com",
      "url": "myapp://users/1",
      "metadata": {
        "foo": "bar"
      },
      "enabled": true
    },
    {
      "id_string": "19136842595045509",
      "id": 19136842595045508,
      "custom_id": "1",
      "social_ids": {
        "facebook": "fb12345678"
      },
      "is_friend": true,
      "is_follower": false,
      "is_followed": true,
      "user_name": "Cruz",
      "first_name": "Cruz",
      "last_name": "Karyn",
      "email": "cruz@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": 0,
  "outgoing_connections_count": 4,
  "users_count": 3
}
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.