Unable to connect, retrying...
Online collaborative whiteboard. Powerful, engaging with timer, emoji's, commenting and voting.
Search for RSS feeds

Adding Animated GIFs via REST and Streaming APIs

To offer a uniform experience across Streaming and REST APIs we will be adding information about attached animated GIFs to the payloads of both. The change is scheduled to be deployed in early February on February 2nd. Below are some examples of the differences in old and new payloads in JSON format, and what it will look like. Key things to notice in the change are: 1. Instead of url entity in "entities", now the transcoded GIF (MP4) appears in entities and `extended_entities` as a media entity 2. For backwards-compatibility, the media type is still photo in "entities", but gets a new type "animated_gif" in `extended_entities` 3. There is a new video_info object in `extended_entities` for GIF (MP4) payloads that contains the aspect ratio and the variants available **OLD**: "entities": { ... "urls": [ { "url": "gif1Url", "expanded_url": "http://twitter.com/username/status/tweetid/photo/1", "display_url": "testDisplayUrl", "indices": [ 1, 10 ] } ], (media field isn't present) } **NEW**: "entities": { "hashtags": [], "trends": [], "urls": [], //

Feed: Related: