jnunemaker/twitter — pull request #203 by seanmoon (2011-10-18 23:23:36+00:00)
Title: Add accessor for expanded_urls from tweet entities

Hey there,

The current Twitter::Status class doesn't provide a convenient way to access the 'expanded_urls' field that the Twitter API returns in the tweet's entities.

These 'expanded_urls' point to, for example, a yfrog URL where a photo has been uploaded, rather than Twitter's shortener link. Unlike the shortened link, these often point directly at media such as from yfrog which a developer (such as myself!) might like to embed with the tweet's text.

Newer tweets (after October 10th, 2011) sometimes include this in 'media' within the entities, but older tweets don't exhibit this behavior.

Thanks!

Sean