Demo application using Java Wrapper for OpenFoodFacts
Java 11 or more recent is required to run the application
Add one dependency to your POM file - check the current version here
<dependencies>
<dependency>
<groupId>pl.coderion</groupId>
<artifactId>openfoodfacts-java-wrapper</artifactId>
<version>0.9.3</version>
</dependency>
</dependencies>
Create wrapper object
OpenFoodFactsWrapper wrapper = new OpenFoodFactsWrapperImpl();
ProductResponse productResponse = wrapper.fetchProductByCode("737628064502");