Skip to content

Retrieve user centered feed

Onur Akpolat edited this page Nov 4, 2016 · 2 revisions

Retrieve the feed with events only targeting the current users themselves.

Endpoint

GET https://api.tapglue.com/0.4/me/feed/notifications/self

Example

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

Response

{
  "events": [
    {
      "id": 48961775982346243,
      "id_string": "48961775982346243",
      "language": "",
      "object": null,
      "tg_object_id": "48961546117709827",
      "owned": true,
      "type": "tg_comment",
      "user_id": 48961552476274691,
      "user_id_string": "48961552476274691",
      "visibility": 10,
      "created_at": "2016-08-03T12:38:41.077532952Z",
      "updated_at": "2016-08-03T12:38:41.077533101Z"
    },
    {
      "id": 48961775982346243,
      "id_string": "48961775982346243",
      "language": "",
      "object": null,
      "tg_object_id": "0",
      "owned": true,
      "target": {
        "id": "48961570696331267",
        "type": "tg_user"
      },
      "type": "tg_friend",
      "user_id": 48961583245688835,
      "user_id_string": "48961583245688835",
      "visibility": 10,
      "created_at": "2016-08-03T12:36:38.605924946Z",
      "updated_at": "2016-08-03T12:36:38.605925218Z"
    },
    {
      "id": 48961775982411779,
      "id_string": "48961775982411779",
      "language": "",
      "object": null,
      "tg_object_id": "48961546117709827",
      "owned": true,
      "type": "tg_comment",
      "user_id": 48961552476274691,
      "user_id_string": "48961552476274691",
      "visibility": 10,
      "created_at": "2016-08-03T12:36:35.454011409Z",
      "updated_at": "2016-08-03T12:36:35.454011579Z"
    },
    {
      "id": 48961775982411779,
      "id_string": "48961775982411779",
      "language": "",
      "object": null,
      "tg_object_id": "0",
      "owned": true,
      "target": {
        "id": "48961570696331267",
        "type": "tg_user"
      },
      "type": "tg_follow",
      "user_id": 48961580678774787,
      "user_id_string": "48961580678774787",
      "visibility": 10,
      "created_at": "2016-08-03T12:36:21.61481112Z",
      "updated_at": "2016-08-03T12:36:21.614811281Z"
    },
    {
      "id": 48961550026801155,
      "id_string": "48961550026801155",
      "language": "",
      "object": null,
      "tg_object_id": "48961546117709827",
      "owned": true,
      "type": "tg_like",
      "user_id": 48959446029697027,
      "user_id_string": "48959446029697027",
      "visibility": 30,
      "created_at": "2016-08-03T12:36:17.973390071Z",
      "updated_at": "2016-08-03T12:36:17.973390293Z"
    }
  ],
  "events_count": 5,
  "post_map": {
    "48961546117709827": {
      "attachments": [
        {
          "content": "http://image.url/image.png",
          "contents": {
            "en": "http://image.url/image.png"
          },
          "name": "image",
          "type": "url"
        },
        {
          "content": "",
          "contents": {
            "en-US": "I was outside today and the landscape looked great!"
          },
          "name": "post",
          "type": "text"
        }
      ],
      "counts": {
        "comments": 0,
        "likes": 0
      },
      "created_at": "2016-08-03T12:36:15.644763077Z",
      "id": "48961546117709827",
      "is_liked": false,
      "tags": [
        "foo"
      ],
      "updated_at": "2016-08-03T12:36:15.644763315Z",
      "user_id": "48961570696331267",
      "visibility": 30
    }
  },
  "post_map_count": 1,
  "users": {
    "48959446029697027": {
      "email": "honey.thigpen@jpopmail.com",
      "first_name": "Declan",
      "follower_count": 0,
      "followed_count": 0,
      "friend_count": 0,
      "id": 48959446029697027,
      "id_string": "48959446029697027",
      "images": {
        "avatar": {
          "url": "https://url.com/avatar.jpg",
          "type": "",
          "height": 400,
          "width": 400
        },
        "avatar_thumb": {
          "url": "https://url.com/avatar_thumb.jpg",
          "type": "",
          "height": 0,
          "width": 0
        }
      },
      "is_follower": false,
      "is_followed": false,
      "is_friend": false,
      "last_name": "Rogers",
      "metadata": {
        "key": "value"
      },
      "social_ids": {
        "facebook": ""
      },
      "user_name": "Cora",
      "created_at": "2016-08-03T12:15:23.891570489Z",
      "updated_at": "2016-08-03T12:15:23.891570489Z"
    },
    "48961552476274691": {
      "email": "rosaline.strout@navy.org",
      "first_name": "Lev",
      "follower_count": 0,
      "followed_count": 0,
      "friend_count": 0,
      "id": 48961552476274691,
      "id_string": "48961552476274691",
      "images": {
        "avatar": {
          "url": "https://url.com/avatar.jpg",
          "type": "",
          "height": 400,
          "width": 400
        },
        "avatar_thumb": {
          "url": "https://url.com/avatar_thumb.jpg",
          "type": "",
          "height": 0,
          "width": 0
        }
      },
      "is_follower": false,
      "is_followed": false,
      "is_friend": false,
      "last_name": "Wheeler",
      "metadata": {
        "key": "value"
      },
      "social_ids": {
        "facebook": ""
      },
      "user_name": "Alika",
      "created_at": "2016-08-03T12:36:19.43278711Z",
      "updated_at": "2016-08-03T12:36:19.43278711Z"
    },
    "48961580678774787": {
      "email": "arvilla.casebeer@carioca.net",
      "first_name": "Marsden",
      "follower_count": 0,
      "followed_count": 0,
      "friend_count": 0,
      "id": 48961580678774787,
      "id_string": "48961580678774787",
      "images": {
        "avatar": {
          "url": "https://url.com/avatar.jpg",
          "type": "",
          "height": 400,
          "width": 400
        },
        "avatar_thumb": {
          "url": "https://url.com/avatar_thumb.jpg",
          "type": "",
          "height": 0,
          "width": 0
        }
      },
      "is_follower": false,
      "is_followed": false,
      "is_friend": false,
      "last_name": "Frye",
      "metadata": {
        "key": "value"
      },
      "social_ids": {
        "facebook": ""
      },
      "user_name": "Leilani",
      "created_at": "2016-08-03T12:36:36.249154754Z",
      "updated_at": "2016-08-03T12:36:36.249154754Z"
    },
    "48961583245688835": {
      "email": "leda.mcgaugh@frommassachusetts.com",
      "first_name": "Lawrence",
      "follower_count": 0,
      "followed_count": 0,
      "friend_count": 0,
      "id": 48961583245688835,
      "id_string": "48961583245688835",
      "images": {
        "avatar": {
          "url": "https://url.com/avatar.jpg",
          "type": "",
          "height": 400,
          "width": 400
        },
        "avatar_thumb": {
          "url": "https://url.com/avatar_thumb.jpg",
          "type": "",
          "height": 0,
          "width": 0
        }
      },
      "is_follower": false,
      "is_followed": false,
      "is_friend": false,
      "last_name": "Massey",
      "metadata": {
        "key": "value"
      },
      "social_ids": {
        "facebook": ""
      },
      "user_name": "Althea",
      "created_at": "2016-08-03T12:36:37.77770085Z",
      "updated_at": "2016-08-03T12:36:37.77770085Z"
    }
  },
  "users_count": 4
}
Clone this wiki locally