Twitter gem - include_entities option

E

Eddie Catflap

[Note: parts of this message were removed to make it a legal post.]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top