Twitter Gem: Twitterize Your Ruby Application
You've heard of Twitter, an online service that allows you and your friends to communicate up-to-the-second by sending short messages. Twitter has built-in features to deliver the updates to your instant messaging account (such as Google Talk) or to your cell phone. Yesterday we covered real-time Flash visualization of RailsConf twitters.
# to post an update to twitter $ twitter post "posting from the twitter gem" # to see you and your friends timeline $ twitter timeline
The command line interface is very simple, and configuring it is easy using a YAML file. Of course, it also sports a Ruby API:
twit.update('me got dizzy this time') # Show your friends' status twit.timeline(:friends).each do |s| puts s.text, s.user.name end
Use RubyGems as usual to install it:
gem install twitter --include-dependencies
Head on to Twitter gem site for more information.