D
> --
> You received this message because you are subscribed to the Google
> Groups "twitter4r-users" group.
> To post to this group, send email to twitter...@googlegroups.com.
> To unsubscribe from this group, send email to twitter4r-use...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/twitter4r-users?hl=en
> .
>
i.e. you should initialize this way:
client = Twitter::Client.new(:oauth_access => { :key => "your key",
:secret => "your secret" })
tweets = client.timeline_for(:friends, :since => since)
HTH and reply by even if it works just to reference and to potentially
help someone else if they search the mailing list.
Thanks,
Susan
> --
> You received this message because you are subscribed to the Google Groups "twitter4r-users" group.
> To post to this group, send email to twitter...@googlegroups.com.
> To unsubscribe from this group, send email to twitter4r-use...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/twitter4r-users?hl=en.
>
>
--
mailto:m...@susanpotter.net
twitter:@SusanPotter
github:mbbx6spp
blog:http://geek.susanpotter.net
linkedin:http://www.linkedin.com/in/susanpotter
I have been unable to reproduce the 401 except when my oauth
credentials are incorrect. I have found another bug that will affect
you though. Namely that the :since parameter is not going to be
passed into the query string to the Twitter.com API. I will be
working on a fix this afternoon and will try to release 0.5.1 bugfix
release including this bugfix and one other.
As a workaround since the
Twitter::Client.from_config('relative/path/to/twitter.yml', 'test')
worked you can use that YAML file that worked in the t4rsh to write
your script perhaps until I can reproduce the problem using correct
credentials.
HTH,
Susan
> For more options, visit this group at http://groups.google.com/group/twitter4r-users?hl=en.
I've managed to get both Twitter::Client#from_config and
Twitter::Client.new approaches working from the authorised domain.
To fix the Twitter::Client.new approach, I changed all :key and
:secret symbols to strings. If you compare the Twitter::Client objects
created by the two apporaches, you will notice that the only
significant difference is the fact that Twitter::Client.new uses
symbols for key and secret hash keys while the other one uses strings.
The snippet below works for me using Twitter::Client.new
client = Twitter::Client.new(
:oauth_consumer => { 'key' => CONSUMER_KEY,
'secret' => CONSUMER_SECRET },
:oauth_access => { 'key' => ACCESS_KEY,
'secret' => ACCESS_SECRET },
:login => "owinna")
client.messages(:received)
Hope that helps.
- Soyapi