Skip to content

Instantly share code, notes, and snippets.

@knorrium
Created November 26, 2010 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knorrium/717076 to your computer and use it in GitHub Desktop.
Save knorrium/717076 to your computer and use it in GitHub Desktop.
Lists all the people you are following
require 'rubygems'
require 'twitter'
Twitter.configure do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.oauth_token = ""
config.oauth_token_secret = ""
end
client = Twitter::Client.new
friends = client.friend_ids.ids
puts "#{friends.size} friends"
friends.each do |f|
user = Twitter.user(f)
puts "#{user.screen_name} - #{user.name}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment