dimanche 19 avril 2015

ruby twitter how to get user followers

I'm trying to get a list of my followers via Ruby and Twitter API, however when I use the code you see below, my response in the terminal is:



#<Twitter::Cursor:0x007f8e71d922e8>


How can I turn that into of list with either usernames and or IDs?


My code:



require 'Twitter'


client = Twitter::REST::Client.new do |config|
config.consumer_key = "..."
config.consumer_secret = "..."
config.access_token = "..."
config.access_token_secret = "..."
end

puts client.followers

Aucun commentaire:

Enregistrer un commentaire