Created
May 20, 2009 01:30
-
-
Save baldwindavid/114553 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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