I'm stuck trying to extract the Twitter hash and can't seem to find out how to get the friendship attributes?
My code:
require 'twitter'
require 'rubygems'
client = Twitter::REST::Client.new do |config|
config.consumer_key = "..."
config.consumer_secret = "..."
config.access_token = "..."
config.access_token_secret = "..."
end
puts client.friendship('user1','user2').to_s
Response:
#<Twitter::Relationship:0x007f88c1e58de0>
Is there a way to extract the info so I can retrieve the hash array of info on the relationship? i.e. like when the friendship was created?
I think you cannot find created_at but you get other attributes
You can use direct attribute name like
If not convert it to JSON like
Sample response after as_json