kraft-recipe-api
v0.1.2
Published
NodeJS API for hitting the Kraft Foods recipe API
Downloads
11
Readme
Kraft Recipes API for NodeJS
This is a work in progress library to wrap the Kraft Recipes API defined here: http://www.kraftfoods.com/ws/RecipeWS.asmx.
The API is defined in SOAP so the aim of this library is to simplify the calls and return back better JSON formatted results than you'd get directly from the XML.
You don't need any API keys to get going with this, you can just call the API straightaway.
To use
var recipes = require("kraft-recipe-api")
Searching for recipes
recipes.search("mango chicken", function(err, results) {
console.log(results);
});
Get Recipe by ID
recipes.getById(138284, function(err, result) {
console.log(result);
});
Search by Ingredients
Search by up to 3 Ingredients (include nulls as parameters if you don't want all of them)
recipes.searchByIngredients("beef", "chilli", "cheese", function(err, results) {
console.log(result);
});
Get a list of all available categories for recipes
recipes.getCategories(function(err, results) {
console.log(result);
});