Label Array

Showing Nutrients

Here we'll explain how to show a product's nutritional information.

How do I show a product’s nutritive data?
The Label Array method (labelarray) and the Product Score method (productscore) are used to return the main details of a given product and it's nutritive data. Product Score returns codensed product details of the given UPC while Label Array will return expanded product details and also returning any number of similar products to the given UPC. Which product nutritive properties are returned with labelarray are determined by which properties are set to "true" with the Set Profile method. This is illustrated below using labelarray with our Demo application. You can also see an example using productscore.