Sha256: 066912af85f6add664b429e97499c30b113ce9f1e8065da7a925e6741fa327ab
Contents?: true
Size: 465 Bytes
Versions: 5
Compression:
Stored size: 465 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 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-2.3.0 | examples/oauth.rb |
tweetstream-2.2.0 | examples/oauth.rb |
tweetstream-2.1.0 | examples/oauth.rb |
tweetstream-2.0.1 | examples/oauth.rb |
tweetstream-2.0.0 | examples/oauth.rb |