Simple program to get product information from the Open Food Facts API.
$ make
$ ./get_off_product
usage: ./get_off_product <product id>
Example:
$ ./get_off_product 737628064502
Product name: Stir-Fry Rice Noodles
Product image: https://static.openfoodfacts.org/images/products/073/762/806/4502/front_en.6.400.jpg
You can run the program in Docker with the provided Dockerfile:
$ docker build -t openfoodfact-api-c .
$ docker run --rm openfoodfact-api-c 737628064502
Product name: Stir-Fry Rice Noodles
Product image: https://static.openfoodfacts.org/images/products/073/762/806/4502/front_en.6.400.jpg
MIT