Copy of Snippet "Task"

A basic app to check the nutrition content of food

Nutritional Information for Food​:hamburger::hamburger:

Food Item: {formtext: name=Food_Item; default=apple}

{urlload: https://api.calorieninjas.com/v1/nutrition?query={=Food_Item}; method=GET; headers=X-Api-Key:RyKDI8c52NHQaXlqtxVqyw\=\=zmfaoffnPcGjV6sJ; done=(res)->["nutrition_data":res]}

Nutritional Information for {=Food_Item} :apple: :
{data=fromjson(nutrition_data).items[1]}
- :rice_cracker: Calories: {=data.calories} kcal  
- :hotdog: Carbohydrates: {=data.carbohydrates_total_g} g  
- :poultry_leg: Proteins: {=data.protein_g} g  
- :pancakes: Fats: {=data.fat_total_g} g  
- :rice_cracker: Sugar: {=data.sugar_g} g  
- :bowl_with_spoon:Serving Size: {=data.serving_size_g} g

Data provided by CalorieNinjas API