Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.468 kb
require 'yajl'
require 'tweetstream'
TweetStream.configure do |config|
config.consumer_key = 'abcdefghijklmnopqrstuvwxyz'
config.consumer_secret = '0123456789'
config.oauth_token = 'abcdefghijklmnopqrstuvwxyz'
config.oauth_token_secret = '0123456789'
config.auth_method = :oauth
config.parser = :yajl
end
client = TweetStream::Client.new
client.on_error do |message|
puts message
end
client.track("yankees") do |status|
puts "#{status.text}"
end
Jump to Line
Something went wrong with that request. Please try again.