Skip to content

Retrieve news feed

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

Endpoint

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

Example

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

Response

{
  "events": [
    {
      "id_string": "19144064297340516",
      "user_id_string": "19136842595045509",
      "id": 19144064297340516,
      "user_id": 19136842595045508,
      "type": "love",
      "visibility": 30,
      "object": {
        "id": "picture_123",
        "type": "picture",
        "display_names": {
          "de": "Bild 1",
          "en": "Picture 1"
        }
      },
      "owned": false,
      "created_at": "2016-01-10T19:46:11.524603962Z",
      "updated_at": "2016-01-10T19:46:11.524603962Z",
      "enabled": true
    },
    {
      "id_string": "19144055069872261",
      "tg_object_id": "0",
      "user_id_string": "19136842595045509",
      "id": 19144055069872260,
      "user_id": 19136842595045508,
      "type": "love",
      "visibility": 30,
      "object": {
        "id": "picture_345",
        "type": "picture",
        "display_names": {
          "de": "Bild 3",
          "en": "Picture 3"
        }
      },
      "owned": false,
      "created_at": "2016-01-10T19:46:06.025570517Z",
      "updated_at": "2016-01-10T19:46:06.025570517Z",
      "enabled": true
    }
  ],
  "events_count": 2,
  "events_count_unread": 0,
  "posts": [
    {
      "attachments": [
        {
          "content": "http://image.url/image.png",
          "name": "imageName1",
          "type": "url"
        },
        {
          "content": "I started running, its really great.",
          "name": "postText",
          "type": "text"
        }
      ],
      "counts": {
    		"comments": 1,
    		"likes": 2
  		},
      "created_at": "2016-01-11T10:13:37.775768873Z",
      "id": "19231383415164516",
      "is_liked": false,
      "tags": [
        "running",
        "cardio",
        "fitness"
      ],
      "updated_at": "2016-01-11T10:13:37.77576909Z",
      "user_id": "19136842595045509",
      "visibility": 20
    },
    {
      "attachments": [
        {
          "content": "http://image.url/image.png",
          "name": "imageName1",
          "type": "url"
        },
        {
          "content": "I started running, its really great.",
          "name": "postText",
          "type": "text"
        }
      ],
      "counts": {
    		"comments": 5,
    		"likes": 10
  		},
      "created_at": "2016-01-11T10:13:34.695460099Z",
      "id": "19231378247782533",
      "is_liked": false,
      "tags": [
        "running",
        "cardio",
        "fitness"
      ],
      "updated_at": "2016-01-11T10:13:34.695460309Z",
      "user_id": "19136842595045509",
      "visibility": 20
    }
  ],
  "posts_count": 2,
  "posts_count_unread": 0,
  "users": {
    "19136842595045509": {
      "id_string": "19136842595045509",
      "id": 19136842595045508,
      "custom_id": "1",
      "social_ids": {
        "facebook": "fb12345678"
      },
      "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
    }
  },
  "users_count": 1
}
Clone this wiki locally