See http://richonrails.com/articles/sending-a-tweet-to-twitter for details.