1
我打開了一個問題how can I capture response from twitter.com? (ruby + twitter gem)以瞭解我的更新是否成功。它工作正常...如何從twitter.com上獲取** http響應**? (ruby + twitter gem)
但我想知道如何在我的紅寶石代碼中捕獲HTTP Response Codes and Errors?
oauth = Twitter::OAuth.new('consumer token', 'consumer secret')
oauth.authorize_from_access('access token', 'access secret')
client = Twitter::Base.new(oauth)
response = client.update('Heeeyyyyoooo from Twitter Gem!')
是的,我需要它在我的紅寶石代碼。 – Radek 2010-04-21 09:03:14