Twitter4R 0.1.0 Released

Written on 11:55:00 PM by S. Potter

This weekend I had a couple of hours to work on Twitter4R (finally). Today (Sunday) saw the release of Twitter4R 0.1.0 on Rubyforge as a Gem. It may take the Rubyforge gem mirrors a few hours to copy it over, but by Monday morning (US time) you should be able to do the following: $ sudo gem install twitter4r $ irb irb(main):001:0> require 'twitter' => true irb(main):002:0> client = Twitter::Client.new :login => 'screen_name', :password => 'password' => # irb(main):003:0> statuses = client.public_timeline => [#, ...] irb(main):004:0> statuses.each do |status| irb(main):005:1* puts status.text, status.user.screen_name irb(main):006:1> end the puts output would go here.... irb(main):007:0> client.update 'Pure Ruby API for Twitter: http://twitter4r.rubyforge.org' => nil It supports utf8 strings so this should not be a worry when querying the public timeline! See Twitter4R Rubyforge Website for more details or the Twitter4R Project Blog. Enjoy!

If you enjoyed this post Subscribe to our feed

No Comment

Post a Comment