Skip to content

Instantly share code, notes, and snippets.

@jamster
Created December 18, 2008 22:23
Show Gist options
  • Save jamster/37688 to your computer and use it in GitHub Desktop.
Save jamster/37688 to your computer and use it in GitHub Desktop.
require 'httparty'
class DataFetcher
include HTTParty
format :xml
base_uri "some.domain.com/api"
def fetch_data
get('/method', :query => {:param1 => 'hello', :param2 => 'world'})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment