searchForFood & fetchSearchResult
Search the database of foods with a given search term.
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.
Import the PassioSDK
You can utilize the searchForFood
API from the SDK to retrieve food records based on a search string. This API returns a PassioSearchResult
object containing both results
and alternatives
.
The results property holds an array of food search results, while the alternatives property provides additional suggestions or alternative options if available.
How to use it?
How to get PassioFoodItem
using SerchFood Response?
Last updated