Google Groups Home
Help | Sign in
Replies with twitter4r
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
S Potter  
View profile
 More options Nov 19 2007, 9:16 am
From: "S Potter" <mbbx6...@gmail.com>
Date: Mon, 19 Nov 2007 08:16:38 -0600
Local: Mon, Nov 19 2007 9:16 am
Subject: Re: Replies with twitter4r
As a quick update on the Twitter4R 0.3.1 release.  I wasn't feeling
well this weekend, but I have something working.

I am not a fan of releasing this without thorough testing (that I
currently do not have on the #to_xml fix), but the interface will
remain the same, so if you want to get started writing your apps, you
can add the following require patch do your application to get
started.

-----
gem 'twitter4r', '=0.3.0'
require 'twitter'

class Twitter::Client
  @@TIMELINE_URIS[:replies] = '/statuses/replies.json'

  alias :old_status :status

  def status(action, value = nil)
    return self.timeline_for(action, value || {}) if :replies == action
    self.old_status(action, value)
  end
end
-----

Sample code would look like:
  client = Twitter::Client.new(:login => 'bla', :password => 'yadayada')
  client.status(:replies)
  client.timeline_for(:replies, :page => 3)

When I tested this in IRB this morning I intermittently kept getting
the following error being raised:

>> Bad Gateway (Twitter::RESTError)

This is an issue on the Twitter.com server side.  Looks like there are
having one of their not so hot moments right now.  So if you get this
error, wait a little while for Twitter.com to stabilize and then try
again.

Hope this helps people get moving quickly.  When Twitter4R 0.3.1 is
released you will be able to remove the patching code between the
-----.
Thanks,
Susan

On Nov 15, 2007 9:16 AM, Susan Potter <m...@susanpotter.net> wrote:

> Hopefully over the weekend.  I am trying to also fix a problem with
> Model#to_xml when used in Rails applications in the same release.  If
> it looks like I can't get the full fix in for #to_xml I will just
> release 0.3.1 with the status(:replies).

> Susan

--
mailto:m...@susanpotter.net
www:http://susanpotter.net
blog:http://snakesgemscoffee.susanpotter.net
linkedin:http://linkedin.com/in/susanpotter

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SP  
View profile
 More options Nov 19 2007, 9:20 am
From: SP <mbbx6...@gmail.com>
Date: Mon, 19 Nov 2007 06:20:18 -0800 (PST)
Local: Mon, Nov 19 2007 9:20 am
Subject: Re: Replies with twitter4r
Sorry for all the typos.

This is why sick people shouldn't get out of bed!:)
Susan

On Nov 19, 8:16 am, "S Potter" <mbbx6...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google