Sha256: c5903a381a16aef822431ebdc80d03d4a43d4745d836ce48caf383e206fe8d6b

Contents?: true

Size: 570 Bytes

Versions: 38

Compression:

Stored size: 570 Bytes

Contents

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

twitter = Twitter::Base.new(config['email'], config['password'])

puts "FRIENDS"
twitter.friends.each { |f| puts f.name }
puts
puts

puts "FRIENDS FOR"
twitter.friends_for('orderedlist', :lite => true).each { |f| puts f.name }
puts
puts

puts "FOLLOWERS"
twitter.followers(:lite => true).each { |f| puts f.name }
puts
puts

puts "FOLLOWERS FOR"
twitter.followers_for('orderedlist', :lite => true).each { |f| puts f.name }
puts
puts

Version data entries

38 entries across 38 versions & 15 rubygems

Version Path
jnunemaker-twitter-0.2.8 examples/friends_followers.rb
jnunemaker-twitter-0.3.1 examples/friends_followers.rb
jnunemaker-twitter-0.3.4 examples/friends_followers.rb
jnunemaker-twitter-0.3.5 examples/friends_followers.rb
jnunemaker-twitter-0.3.6 examples/friends_followers.rb
jnunemaker-twitter-0.3.7 examples/friends_followers.rb
jnunemaker-twitter-0.3.8 examples/friends_followers.rb
jnunemaker-twitter-0.4.0 examples/friends_followers.rb
jnunemaker-twitter-0.4.1 examples/friends_followers.rb
jnunemaker-twitter-0.4.2 examples/friends_followers.rb
jnunemaker-twitter-0.4.4 examples/friends_followers.rb
lazyatom-twitter-0.4.2.1 examples/friends_followers.rb
netshade-twitter-0.4.2.1 examples/friends_followers.rb
neufelry-twitter-0.4.2 examples/friends_followers.rb
pjdavis-twitter-0.3.8 examples/friends_followers.rb
pjdavis-twitter-0.3.9 examples/friends_followers.rb
pjdavis-twitter-0.4.2 examples/friends_followers.rb
ubermajestix-twitter-0.4.2 examples/friends_followers.rb