Closed Dwarfex closed 4 years ago
Update: The code now uses the existing (but unused) specific Document Types depending on the API called. Former type was "OpenFoodFacts\Document".
The types now used are:
OpenFoodFacts\Document\FoodDocument;
OpenFoodFacts\Document\PetDocument;
OpenFoodFacts\Document\BeautyDocument;
OpenFoodFacts\Document\ProductDocument;
these types extend the old generic "Document"-Type. So checks for the class "Document" are still valid. This is more a cosmetic code cleaning thing.
New Functionality: Raw Data Document::class->getData();
Returns a alphabetically and numberly ordered array representation of the Document Helpful for f.e. debugging.
Product API Added Product API(https://world.openproductsfacts.org/) for usage
Update: The code now uses the existing (but unused) specific Document Types depending on the API called. Former type was "OpenFoodFacts\Document".
The types now used are:
OpenFoodFacts\Document\FoodDocument;
OpenFoodFacts\Document\PetDocument;
OpenFoodFacts\Document\BeautyDocument;
OpenFoodFacts\Document\ProductDocument;
these types extend the old generic "Document"-Type. So checks for the class "Document" are still valid. This is more a cosmetic code cleaning thing.
New Functionality: Raw Data Document::class->getData();
Returns a alphabetically and numberly ordered array representation of the Document Helpful for f.e. debugging.
Product API Added Product API(https://world.openproductsfacts.org/) for usage