Sha256: 009e7c19de007dbef113e628e695b3ff5bc3f75f4cdc41e89b72d3798a792dc6

Contents?: true

Size: 335 Bytes

Versions: 12

Compression:

Stored size: 335 Bytes

Contents

#!/usr/bin/env ruby
# coding: utf-8
# tested on 1.9.x

require "pupil/stream"
require "yaml"

oauth_key = {
  :consumer_key => "",
  :consumer_secret => "",
  :access_token => "",
  :access_token_secret => ""
}

ps = Pupil::Stream.new oauth_key

ps.start :userstream do |status|
  puts "#{status.user.screen_name}: #{status.text}"
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pupil-0.7 samples/userstream-test.rb
pupil-0.6.3 samples/userstream-test.rb
pupil-0.6.2 samples/userstream-test.rb
pupil-0.6.1 samples/userstream-test.rb
pupil-0.6 samples/userstream-test.rb
pupil-0.5 samples/userstream-test.rb
pupil-0.4.1 samples/userstream-test.rb
pupil-0.4 samples/userstream-test.rb
pupil-0.3.3 samples/userstream-test.rb
pupil-0.3.2 samples/userstream-test.rb
pupil-0.3.1 samples/userstream-test.rb
pupil-0.3.0 samples/userstream-test.rb