On Mon, Feb 23, 2009 at 2:07 PM, kiko <[email protected]> wrote: > > Sorry previous post was saved prematurely. The following is > essentially the rest client, I'm useing the rest-client gem v 0.6.2. > > > require 'rest_client'
Maybe httparty is easier to work with. http://railstips.org/2008/7/29/it-s-an-httparty-and-everyone-is-invited http://github.com/jnunemaker/httparty/tree/master basic HTTP authentication seems easy to setup : ---8<--- require 'rubygems' require 'httparty' class Twitter include HTTParty base_uri 'twitter.com' basic_auth 'username', 'password' end puts Twitter.post('/statuses/update.json', :query => {:status => "It's an HTTParty and everyone is invited!"}).inspect --->8--- Best regards, -- John Mettraux - http://jmettraux.wordpress.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruote (OpenWFEru) users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
