Sha256: fa320e9b2771f0a7ffb2742329ebc7c3368aa0ff082fbeafb7b6917bbbf463b7

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

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
end

client = TweetStream::Client.new

client.on_error do |message|
  puts message
end

client.on_direct_message do |direct_message|
  puts direct_message.text
end

client.on_timeline_status  do |status|
  puts status.text
end

client.userstream

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tweetstream-2.4.0 examples/userstream.rb