Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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