Skip to content

Instantly share code, notes, and snippets.

@karmiclychee
Created May 24, 2013 22:23
Show Gist options
  • Save karmiclychee/5646892 to your computer and use it in GitHub Desktop.
Save karmiclychee/5646892 to your computer and use it in GitHub Desktop.
Tweetstream
require 'tweetstream'
require 'pry'
require 'pry-debugger'
# 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
# end
TweetStream::Client.new.sample do |status|
puts "#{status.text}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment