Skip to content

Instantly share code, notes, and snippets.

@tibbon
Created August 9, 2013 18:35
Show Gist options
  • Save tibbon/6195985 to your computer and use it in GitHub Desktop.
Save tibbon/6195985 to your computer and use it in GitHub Desktop.
tweet stream
require 'tweetstream'
TweetStream.configure do |config|
config.consumer_key = 'YOUR-KEY'
config.consumer_secret = 'YOUR-SECRET'
config.oauth_token = 'YOUR-OAUTH'
config.oauth_token_secret = 'YOUR-OAUTH-SECRET'
config.auth_method = :oauth
end
TweetStream::Client.new.sample do |status|
puts "#{status.user.screen_name}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment