Right now the package can only use the food API because it is harcoded in the parameter of the method setApi in OpenFoodFactsApiWrapper and the is no way to change it since it is called directly from the constructor.
Proposed solution
Allow to modify the API to query the beauty (cosmetic) products instead of the food products.
Problem
OpenFoodFacts has different APIs, for example, the beauty API for Cosmetic products. The API is 98% similar to food API.
Right now the package can only use the food API because it is harcoded in the parameter of the method setApi in OpenFoodFactsApiWrapper and the is no way to change it since it is called directly from the constructor.
Proposed solution
Allow to modify the API to query the beauty (cosmetic) products instead of the food products.