Access nutritional information from FatSecret. You need to register with FatSecret to get a key and secret. At the moment you can search for food and get its nutritional information, however FatSecret provides much more then that, which has not been implemented in this gem.
If you are using bundler, you put this in your Gemfile:
source :rubygems gem 'fatsecret-api'
Then run bundle install
To use it tell the gem your authentication details:
require 'fatsecret' FatSecret.init(FATSECRET_KEY,FATSECRET_SECRET)
Search for food, use the following:
To get nutritional information for food you found through food search, you have to provide the food method with the food id:
Search for Recipe:
Get a particular recipe if you know its id:
Any contributions to improve this gem are welcome.