Entities changes in Site and User streams

kurrik
@kurrik Arne Roomann-Kurrik

Hi, this is a notice that we started delivering entities objects in "favorite" and "unfavorite" events this week. As early as next week we will begin shipping entities objects in streamed DM messages. These changes affect both User and Site streams products.

In addition to providing more structured metadata, the entities object allows developers to more easily adhere to the display requirements when displaying favorited Tweets. Entities in events and DMs are identical to Tweet entities. For an example, here is a favorite event containing entities:

{
  "created_at": "Mon Oct 22 18:16:03 +0000 2012",
  "event": "favorite",
  "source": {
    ...
  },
  "target": {
    ...
  },
  "target_object": {
    ...
    "id": 260444371361615872,
    "id_str": "260444371361615872",
    ...
    "text": "Tweet with Entities #example https://t.co/RV099OlP @kurrik",
    "truncated": false,
    "entities": {
      "hashtags": [
        {
          "text": "example",
          "indices": [
            20,
            28
          ]
        }
      ],
      "urls": [
        {
          "url": "https://t.co/RV099OlP",
          "expanded_url": "https://twitter.com",
          "display_url": "twitter.com",
          "indices": [
            29,
            50
          ]
        }
      ],
      "user_mentions": [
        {
          "screen_name": "kurrik",
          "name": "Arne Roomann-Kurrik",
          "id": 7588892,
          "id_str": "7588892",
          "indices": [
            51,
            58
          ]
        }
      ]
    },
    "user": {
      ...
      "name": "fakekurrik",
      ...
    }
  }
}
45 weeks 5 days ago

Replies

ethioahtaimpexp
@ethioahtaimpexp Suleyman Mohammed

So how can i get like these.

4 weeks 2 days ago