0.1.2 • Published 8 years ago

kraft-recipe-api v0.1.2

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

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);
});
0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago