Skip to content

Instantly share code, notes, and snippets.

@henteko
Created November 21, 2013 06:23
Show Gist options
  • Save henteko/7576878 to your computer and use it in GitHub Desktop.
Save henteko/7576878 to your computer and use it in GitHub Desktop.
require 'tweetstream'
TweetStream.configure do |config|
config.consumer_key = 'hoge'
config.consumer_secret = 'hoge'
config.oauth_token = 'hoge'
config.oauth_token_secret = 'hoge'
config.auth_method = :oauth
end
TweetStream::Client.new.track('#phone_range') do |status|
puts "#{status.text}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment