| |
Twitter4R
Page history last edited by Alex Payne 1 yr ago
Twitter4R: Open Source Ruby Library for Twitter REST API
Status
Currently the most recent release of Twitter4R is 0.3.0, which now supports the following features:
- Added verify_credentials (see Twitter::Client#authenticate?) and favorites (list, add and remove) features
- SSL support
- Proxy support (including authenticated proxy support)
To find out more check out the official project website: http://twitter4r.rubyforge.org
Developers & Contributors
- Susan Potter - Manager, Lead Open Source Ruby Developer
- Kaiichi Matsunaga - Contributed proxy patch
- Sergio Santos - Contributed message paging patch
Getting Started
This document assumes that you have basic Ruby and Ruby Gems knowledge and understanding:
- Install the Twitter4R Ruby Gem from the command line, like so: sudo gem install twitter4r
- Open up a Ruby prompt to start prototyping at the command prompt: irb
- In the Ruby irb session type:
require "rubygems"
gem 46#39;twitter4r46#39;, 46#39;46gt;750.3.046#39;
require 47twitter47
client = Twitter::Client.new(:login =46gt; 46#39;mylogin46#39;, :password =46gt; 46#39;mypassword46#39;)
timeline = client.timeline_for(:public) do |status|
puts "#{status.user.screen_name}: #{status.text}"
end
The example above will get the current public timeline (last 20 statuses) and output the statuses in the format: screen_name: message one on its own line.
More Information
For more information check out the following blog entries and articles:
Feel free to follow Twitter4R's twitter updates at: http://twitter.com/twitter4r
Twitter4R
|
|
Tip: To turn text into a link, highlight the text, then click on a page or file from the list above.
|
|
|
Comments (0)
You don't have permission to comment on this page.