How can i get all list of quantity Type?

40 views
Skip to first unread message

Shiwani Thakur

unread,
Jan 12, 2022, 11:13:04 PMJan 12
to FatSecret Platform API
Hey,

I am using food.search api in swift, it returns me all food items with response:
<food_id>4384</food_id>
        <food_name>Plain French Toast</food_name>
        <food_type>Generic</food_type>
        <food_description>Per 342g - Calories: 835kcal | Fat: 32.28g | Carbs: 105.43g | Protein: 29.41g</food_description>

Food description is a string including all info, can someone help how can i get all quantity type because its becoming hard to get the quatity type e.g: g , oz , cup from string. is there any other way to get what can food quantity be?

Thanks 


Reply all
Reply to author
Forward
0 new messages