Skip to content

Retrieve posts feed

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

Endpoint

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

Example

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

Response

{
  "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": 3,
    		"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,
  "users": {
    "19136842595045509": {
      "id_string": "19136842595045509",
      "id": 19136842595045508,
      "custom_id": "1",
      "social_ids": {
        "facebook": "fb12345678"
      },
      "user_name": "Cruz",
      "first_name": "Cruz",
      "last_name": "Karyn",
      "email": "[email protected]",
      "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