Skip to content

Instantly share code, notes, and snippets.

@baldwindavid
Created May 20, 2009 01:30
Show Gist options
  • Save baldwindavid/114553 to your computer and use it in GitHub Desktop.
Save baldwindavid/114553 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'httparty'
class CalorieKing
include HTTParty
basic_auth '84294d7ae4454189bf2a3ebc37a0e421', ''
base_uri 'http://foodsearch1.webservices.calorieking.com/rest'
def self.search(term)
get("/search/#{term}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment