Hi
The twitter api now has an option ‘include_entities’ which when included
in
a call to a timeline returns a lot of interesting metadata about a
tweet,
such as users, lists, URLs, and hashtags mentioned in it.
The api returns these in a nice structured way and I’ve been considering
how
to use it. The only problem I have is that I can’t get the twitter gem
(version 0.9.8) to send the option to the public_timeline method
(‘firehose’).
From the Twitter api docs:
http://api.twitter.com/1/statuses/public_timeline.json?include_entities=true
From the twitter gem (lib/twitter.rb)
def self.firehose(options = {})
perform_get(“/statuses/public_timeline.json”)
end
From the twitter gem (lib/twitter.rb) I’d notmally call this via
something
like “client = Twitter.firehose” - but how do I get the
“?include_entities=true” portion of the call attached to it?
I assume adding the option somehow should do it, but can’t see where in
the
gem it amends the call - can anyone help? Could it be the gem doesn’t
support this option yet (should I send a patch in or something?)
Regards
Eddie_Catflap