Twitter4R: Open Source Ruby Library for Twitter REST API

9 views
Skip to first unread message

SP

unread,
Jun 25, 2007, 7:25:37 PM6/25/07
to Twitter Development Talk
Just to inform Twitter developers that work in Ruby that the new
Twitter4R 0.1.1 Ruby Gem was just released. Version 0.2.0 will be
release within the next couple of business days also, which will see a
major change in API to declutter the Ruby library and allow it to
cover more of the Twitter REST API.

Features of Twitter4R version 0.1.1 include:
* public_timeline, friend_timeline, follower_statuses, update
* SSL support
* Proxy support
* 100% C0 code coverage using RSpec specifications.

The official website is at http://twitter4r.rubyforge.org

You can also find out more at
http://groups.google.com/group/twitter-development-talk/web/twitter4r-open-source-ruby-library-for-twitter-rest-api
- or copy & paste it into your browser's address bar if that doesn't
work.

Thanks,
Susan Potter
---
http://susanpotter.net

SP

unread,
Jul 9, 2007, 1:37:43 AM7/9/07
to Twitter Development Talk
A new release of Twitter4R (v0.2.0) is out which contains 100% of
Twitter REST API coverage (according to Twitter's docs). This is a
Ruby binding for Twitter's REST API.

Click on http://groups.google.com/group/twitter-development-talk/web/twitter4r-open-source-ruby-library-for-twitter-rest-api


- or copy & paste it into your browser's address bar if that doesn't
work.

Enjoy!

ress...@gmail.com

unread,
Jul 20, 2007, 9:56:16 AM7/20/07
to Twitter Development Talk
My IRB experiment with the Twitter4r gem did not go so hot. I'm using
OS X and Locomotive, though that sholdn't matter at this point, from
IRB, it get the following:

irb(main):013:0> client = Twitter::Client.new(:login =>
'XXX', :password => 'XXX')
=> #<Twitter::Client:0x76e4c8 @login="XXX", @password="XXX">
irb(main):014:0> timeline = client.timeline_for(:public) do |status|
irb(main):015:1* puts "#{status.user.screen_name}: #{status.message}"
irb(main):016:1> end
NoMethodError: undefined method `message' for #<Twitter::Status:
0x75e0dc>
from (irb):15
from /usr/local/lib/ruby/gems/1.8/gems/twitter4r-0.2.2/lib/
twitter/client/timeline.rb:68:in `timeline_for'
from /usr/local/lib/ruby/gems/1.8/gems/twitter4r-0.2.2/lib/
twitter/client/timeline.rb:68:in `timeline_for'
from (irb):14
irb(main):017:0>

Any ideas? Requiring the gem properly resulted in 'true' from the IRB
console, not sure if i have it installed correctly or what.

I look forward to using this gem once i can get it working :)

Regards,
-R

SP - Twitter4R

unread,
Jul 22, 2007, 9:47:06 AM7/22/07
to Twitter Development Talk
Sorry for the delay, it seems to be an issue with the example code.
Twitter::Status class has the following attributes: id, text,
created_at, user. If you substitute ".message" for ".text" the sample
code will work.

I will update the sample code now. Thanks and sorry for the
misinformation in the documentation. Also refer to http://twitter4r.rubyforge.org/
for more indepth documentation, where documentation is always updated
for the project with all minor releases.

Thanks,
SP

SP - Twitter4R

unread,
Jul 22, 2007, 9:49:52 AM7/22/07
to Twitter Development Talk
Actually please refer to the following URL for the most current list
of articles relating to using Twitter4R:
http://twitter4r.rubyforge.org/articles/

On Jul 22, 8:47 am, SP - Twitter4R <mbbx6...@gmail.com> wrote:
> Sorry for the delay, it seems to be an issue with the example code.
> Twitter::Status class has the following attributes: id, text,
> created_at, user. If you substitute ".message" for ".text" the sample
> code will work.
>
> I will update the sample code now. Thanks and sorry for the

> misinformation in the documentation. Also refer tohttp://twitter4r.rubyforge.org/

SP - Twitter4R

unread,
Jul 22, 2007, 9:52:07 AM7/22/07
to Twitter Development Talk
Updated sample code and added link to Twitter4R articles.

SP - Twitter4R

unread,
Sep 23, 2007, 10:02:39 PM9/23/07
to Twitter Development Talk
As part of the Twitter4R release cycle I am updating the Twitter
Development Talk page.

The new 0.2.5 version of Twitter4R now includes message paging
support, which was recently added to the Twitter REST API.

For more details see the following blog post:
http://snakesgemscoffee.blogspot.com/2007/09/twitter4r-announcements.html

To view the GoogleGroups page click on

Reply all
Reply to author
Forward
0 new messages