openfoodfacts-laravel icon indicating copy to clipboard operation
openfoodfacts-laravel copied to clipboard

Allow use of Open Beauty Facts

Open davidjr82 opened this issue 8 months ago • 0 comments

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.

davidjr82 avatar Jun 10 '24 14:06 davidjr82