Typhoeus and OAuth are working

12 views
Skip to first unread message

Bill Kocik

unread,
Oct 4, 2009, 9:41:46 AM10/4/09
to Typhoeus
Hi Paul -

I have added code to the OAuth Ruby gem to support Typhoeus. Before I
send Seth a pull request, could you take a look at how I'm using the
Hydra and Request classes and see if you have any feedback? My test
class is here:

http://gist.github.com/185979

You won't be able to run that code without my additions to the OAuth
gem, but it should be fairly clear how it gets used from that sample.

Thanks...

Paul Dix

unread,
Oct 4, 2009, 1:54:59 PM10/4/09
to typh...@googlegroups.com
Hi Bill,
I was going to fork and point you to that, but it's offline. Anyway,
here are a few things.

First, you don't need to include Typhoeus in the Typhoon class.
Second, you should probably have a hydra object for the instance
instead of creating a new one every time you call get_my_directs.

Other than that I think it looks good.

Thanks,
Paul

Bill Kocik

unread,
Oct 4, 2009, 2:08:59 PM10/4/09
to typh...@googlegroups.com
Awesome. Since those are just implementation details, it indicates to
me that my OAuth gem changes are probably correct, so I'll see if I
CSM get Seth to pull them into the official gem. Thanks!

--
Sent via iPhone
Reply all
Reply to author
Forward
0 new messages