Skip to content

Instantly share code, notes, and snippets.

@pioz
Created September 18, 2012 11:17
Show Gist options
  • Save pioz/3742623 to your computer and use it in GitHub Desktop.
Save pioz/3742623 to your computer and use it in GitHub Desktop.
Tweet streaming
require 'tweetstream'
TweetStream.configure do |config|
config.consumer_key = 'AA'
config.consumer_secret = 'BB'
config.oauth_token = 'CC'
config.oauth_token_secret = 'DD'
config.auth_method = :oauth
end
TweetStream::Client.new.follow(integer_user_id) do |status|
puts "[#{status.user.screen_name}] #{status.text}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment