FairFood-Connect
The fairfood-connect library provides a set of classes and methods to interact with the FairFood Connect API for managing and accessing data related to buyers, farmers, products, companies, transactions and catalogs. This library allows users to interact with the API endpoints and perform operations like retrieving, creating, updating and deleting data.Installing Fairfood-Connect and Supported Versions
Fairfood-Connect is available on PyPI:Supported Features & Best–Practices
- Create Buyer
- List country and provinces
- Get details of company
- Create, get and update details of farmer
- List Products
- Create and delete Transactions
Example Usage
Initialization
Initialize the connect object with the required parameters: base_url, client_id, client_secret, and entity_id. This will automatically handle the authentication and setup for API requests.Parameters
Once initialized, the connect object is ready to make API requests with the
authentication token automatically included in the headers.
