Back to Parent

API call

Below you can find the code to call Nutritionix API and process the response. Basically what the API does is if I send it a sentence saying "I had two eggs and some salad for breakfast", it will return all food detected in that sentence and the corresponding nutrition value. What I did was to extract the calories, protein and fat value of the said food, then log it and return that message to the user.

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!