Migrating from SDK 2.X to version 3.X
Deprecated APIs
Refactored APIs
getAttributesForPassioID
,fetchAttributesForBarcode
,fetchPassioIDAttributesForPackagedFood
now returns a PassioFoodItem resultFixed typo mistake of
onDownloadingPassioModelCallBacks
searchForFood now returns PassioSearchResult and a list of search options. The PassioSearchResult represent a specific food item associated with the search term, while search options provide a list of possible suggested search terms connected to the input term.
We now provide detailed information on macro nutrients in our food search queries, including calorie
carbs
, protein
, and fat
, among other nutritional data.
Now
DetectedCandidate
havealternatives
andcroppedImage
Added a few more nutrients in
PassioNutrients
New APIs
fetchSearchResult returns a PassioFoodItem object for a given PassioSearchResult
Added API to fetch suggestions for a certain meal time.
To retrieve all macro and micronutrient values using
PassioSDK
by passing apassioFoodItem
you would typically follow these steps:
Last updated