Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleSummary


Excerpt
Available in Version 1.3.x - Retrieves an analysis for the entire food identified by the specified userCode value if it is published. 


Note: If you are upgrading to Gen API 3.1 (or later) you will want to reference this page.


Panel
borderColorblack
bgColor#f5fff5
borderWidth1
titleBGColor#e0e0e0
borderStylesolid
titleSoap Action
http://ns.esha.com/2013/genesisapi/GetAnalysisByFoodId


Panel
borderColorblack
bgColor#ffffff
borderWidth1
titleBGColor#f5f5f5
borderStylesolid
titleRequest

Request Type: AnalysisByFoodIdRequest

ElementContent TypeDescription
 FoodId xs:guid The value of the FoodId field on the food.



Panel
borderColorblack
bgColor#ffffff
borderWidth1
titleBGColor#f5f5f5
borderStylesolid
titleResponse

 Response Type: FoodAnalysisResponse Element

ElementTypeDescription
 Foodexlx:FoodDtoThe metadata and list of items in the food matching the FoodId value.
 FoodRawAnalysisexlx:AnalysisDto
 ItemsRawAnalysisapi:ArrayOfAnalysisDto
 LabelNutrientsexlx:ArrayOfLabelNutrientDto
 IngredientStatementexlx:IngredientStatementInfoDto
 AllergenStatementexlx:AllergenStatementDto




Panel
borderColorblack
bgColor#f0f0ff
borderWidth1
titleBGColor#e0e0e0
borderStylesolid
titleNamespaces





Examples

Code Block
languagec#
titleQuery food analysis for user code
linenumberstrue