Sha256: 7def64caad9992f0ee6444c96dc6705a9671ac25dacc2678acd3f218bbe7c6c9

Contents?: true

Size: 468 Bytes

Versions: 5

Compression:

Stored size: 468 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tweetstream-1.1.3 examples/oauth.rb
tweetstream-1.1.2 examples/oauth.rb
tweetstream-1.1.1 examples/oauth.rb
tweetstream-1.1.0 examples/oauth.rb
tweetstream-1.1.0.rc2 examples/oauth.rb