ruby on rails - How can I get a Twitter screenname/username with the twitter_oauth gem using their id? -


how can twitter screenname/username twitter_oauth gem using id?

here go, sample in irb:

require 'rubygems' require 'twitter_oauth' client = twitteroauth::client.new id = '5452272'   temp = client.show(id) puts "screenname: #{temp['screen_name']}, username: #{temp['name']}" 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -