Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 957 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 957 Bytes

Open Food Facts API request in C

CircleCI

Simple program to get product information from the Open Food Facts API.

Dependencies

Usage

$ 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

Docker

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

License

MIT