The simple answer is, no. I had a similar problem with ActiveResource, I didn't like the HTTParty api (too many class methods), so I made my own. Try it, it's called Wrest . It has partial support for Curl and deserialization through REXML, LibXML, Nokogiri, and JDom out of the box. You can trivially write your own deserializer.
Here is an example for the Delicious api:
class Delicious def initialize(options) @uri = "https://api.del.icio.us/v1/posts".to_uri(options) end def bookmarks(parameters = {}) @uri['/get'].get(parameters) end def recent(parameters = {}) @uri['/recent'].get(parameters) end def bookmark(parameters) @uri['/add'].post_form(parameters) end def delete(parameters) @uri['/delete'].delete(parameters) end end account = Delicious.new :username => 'kaiwren', :password => 'fupupp1es' account.bookmark( :url => 'http://blog.sidu.in/search/label/ruby', :description => 'The Ruby related posts on my blog!', :extended => "All posts tagged with 'ruby'", :tags => 'ruby hacking' )
source share