Sha256: 531073deebdc3fc03faec6ba9e7bffabc71eabc1c2579e75da1d6f213d89928a
Contents?: true
Size: 562 Bytes
Versions: 7
Compression:
Stored size: 562 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.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
7 entries across 7 versions & 1 rubygems