diff --git a/README.md b/README.md index aa21d0b..378870b 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ The `User` class provides a high-level interface for interacting with the 2050-m - `get_physical_properties_fields(self)`: Returns a list of fields detailing the physical properties of materials. - `get_filters_mapping(self)`: Creates and returns a mapping of filter options to simplify query construction. - `get_products_page(self, page=1, openapi=False, **filters)`: Fetches a specific page of product data, optionally applying filters. -- `get_products(self, openapi=False, **filters)`: Fetches all products, optionally applying filters, and handles pagination automatically. Use `openapi=False` to use the free Open API. +- `get_products(self, openapi=False, **filters)`: Fetches all products, optionally applying filters, and handles pagination automatically. Use `openapi=True` to use the free Open API. ## Usage Example @@ -117,7 +117,7 @@ all_mappings = user.get_filters_mapping() # Fetch products whose material type family is Ceramic filters = { - 'material_type_family': all_mappings['material_types_family']['Ceramic'], + 'material_type_family': all_mappings['material_type_family']['Ceramic'], } filtered_products = user.get_products(openapi=False, **filters) # Set openapi=True for the free version ```