Sha256: d7c5c37e0d24b6bc3b0be341aa5ecb055cff5eff027501796ac5ec3c6c765cdf

Contents?: true

Size: 741 Bytes

Versions: 38

Compression:

Stored size: 741 Bytes

Contents

require 'rubygems'
require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
config = YAML::load(open(ENV['HOME'] + '/.twitter'))

puts "Public Timeline", "=" * 50
Twitter::Base.new(config['email'], config['password']).timeline(:public).each do |s|
  puts s.text, s.user.name
  puts
end

puts '', "Friends Timeline", "=" * 50
Twitter::Base.new(config['email'], config['password']).timeline.each do |s|
  puts s.text, s.user.name
  puts
end

puts '', "Friends", "=" * 50
Twitter::Base.new(config['email'], config['password']).friends.each do |u|
  puts u.name, u.status.text
  puts
end

puts '', "Followers", "=" * 50
Twitter::Base.new(config['email'], config['password']).followers.each do |u|
  puts u.name, u.status.text
  puts
end

Version data entries

38 entries across 38 versions & 15 rubygems

Version Path
anthonycrumley-twitter-0.3.8 examples/twitter.rb
baron-twitter-0.4.2 examples/twitter.rb
billymeltdown-twitter-0.3.8.1 examples/twitter.rb
billymeltdown-twitter-0.4.2 examples/twitter.rb
billymeltdown-twitter-0.4.3 examples/twitter.rb
drnic-twitter-0.4.4.1 examples/twitter.rb
dschn-twitter-0.3.7.1 examples/twitter.rb
dschn-twitter-0.3.7.2 examples/twitter.rb
dschn-twitter-0.4.1.1 examples/twitter.rb
dschn-twitter-0.4.1.2 examples/twitter.rb
dschn-twitter-0.4.1.3 examples/twitter.rb
dschn-twitter-0.4.1 examples/twitter.rb
dustin-twitter-0.3.2.1 examples/twitter.rb
dustin-twitter-0.3.2.2 examples/twitter.rb
dustin-twitter-0.3.7 examples/twitter.rb
gilesbowkett-gilesbowkett-twitter-0.4.4 examples/twitter.rb
gilesbowkett-twitter-0.4.3 examples/twitter.rb
gilesbowkett-twitter-0.4.5 examples/twitter.rb
handcrafted-twitter-0.4.0 examples/twitter.rb
handcrafted-twitter-0.4.2 examples/twitter.rb