I want to integrate Visualize Nutrition api in my web.
please help me how to add ingredients per line . (send me demo example to suraj@prismatric.com if possible)
https://market.mashape.com/spoonacular/recipe-food-nutrition
Join in the discussion - add comment below:
Thank you for support.
I need response in json so how do i do ?
Hey, just put a \n between each ingredient like so:
curl -X POST --include ‘https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/visualizeNutrition’
-H ‘X-Mashape-Key: YOUR-KEY’
-H ‘Content-Type: application/x-www-form-urlencoded’
-d ‘defaultCss=checked’
-d ‘ingredientList=3 oz flour\2 cups water’
-d ‘servings=2’
Best,
David