Skip to content

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

License

Notifications You must be signed in to change notification settings

angristan/openfoodfacts-api-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published