python/spoonacular/com/spoonacular/default_api.py
def ingredient_search(self, query, **kwargs):  # noqa: E501
        """Ingredient Search  # noqa: E501

        Search for simple whole foods (e.g. fruits, vegetables, nuts, grains, meat, fish, dairy etc.).  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.ingredient_search(query, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str query: The partial or full ingredient name. (required)
        :param bool add_children: Whether to add children of found foods.
        :param float min_protein_percent: The minimum percentage of protein the food must have (between 0 and 100).
        :param float max_protein_percent: The maximum percentage of protein the food can have (between 0 and 100).
        :param float min_fat_percent: The minimum percentage of fat the food must have (between 0 and 100).
        :param float max_fat_percent: The maximum percentage of fat the food can have (between 0 and 100).
        :param float min_carbs_percent: The minimum percentage of carbs the food must have (between 0 and 100).
        :param float max_carbs_percent: The maximum percentage of carbs the food can have (between 0 and 100).
        :param bool meta_information: Whether to return more meta information about the ingredients.
        :param str intolerances: A comma-separated list of intolerances. All recipes returned must not contain ingredients that are not suitable for people with the intolerances entered. See a full list of supported intolerances.
        :param str sort: The strategy to sort recipes by. See a full list of supported sorting options.
        :param str sort_direction: The direction in which to sort. Must be either 'asc' (ascending) or 'desc' (descending).
        :param float offset: The number of results to skip (between 0 and 990).
        :param float number: The number of expected results (between 1 and 100).
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.ingredient_search_with_http_info(query, **kwargs)  # noqa: E501
        else:
            (data) = self.ingredient_search_with_http_info(query, **kwargs)  # noqa: E501
            return data
Ingredient Search  # noqa: E501

        Search for simple whole foods (e.g. fruits, vegetables, nuts, grains, meat, fish, dairy etc.).  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.ingredient_search(query, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str query: The partial or full ingredient name. (required)
        :param bool add_children: Whether to add children of found foods.
        :param float min_protein_percent: The minimum percentage of protein the food must have (between 0 and 100).
        :param float max_protein_percent: The maximum percentage of protein the food can have (between 0 and 100).
        :param float min_fat_percent: The minimum percentage of fat the food must have (between 0 and 100).
        :param float max_fat_percent: The maximum percentage of fat the food can have (between 0 and 100).
        :param float min_carbs_percent: The minimum percentage of carbs the food must have (between 0 and 100).
        :param float max_carbs_percent: The maximum percentage of carbs the food can have (between 0 and 100).
        :param bool meta_information: Whether to return more meta information about the ingredients.
        :param str intolerances: A comma-separated list of intolerances. All recipes returned must not contain ingredients that are not suitable for people with the intolerances entered. See a full list of supported intolerances.
        :param str sort: The strategy to sort recipes by. See a full list of supported sorting options.
        :param str sort_direction: The direction in which to sort. Must be either 'asc' (ascending) or 'desc' (descending).
        :param float offset: The number of results to skip (between 0 and 990).
        :param float number: The number of expected results (between 1 and 100).
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        
Ingredient Search  # noqa: E501
Search for simple whole foods .  # noqa: E501
This method makes a synchronous HTTP request by default.

:param async_req bool
:param str query: The partial or full ingredient name. (required)
:param bool add_children: Whether to add children of found foods.
:param float min_protein_percent: The minimum percentage of protein the food must have (between 0 and 100).
:param float max_protein_percent: The maximum percentage of protein the food can have (between 0 and 100).
:param float min_fat_percent: The minimum percentage of fat the food must have (between 0 and 100).
:param float max_fat_percent: The maximum percentage of fat the food can have (between 0 and 100).
:param float min_carbs_percent: The minimum percentage of carbs the food must have (between 0 and 100).
:param float max_carbs_percent: The maximum percentage of carbs the food can have (between 0 and 100).
:param bool meta_information: Whether to return more meta information about the ingredients.
:param str intolerances: A comma-separated list of intolerances. All recipes returned must not contain ingredients that are not suitable for people with the intolerances entered. See a full list of supported intolerances.
:param str sort: The strategy to sort recipes by. See a full list of supported sorting options.
:param str sort_direction: The direction in which to sort. Must be either 'asc' (ascending) or 'desc' (descending).
:param float offset: The number of results to skip (between 0 and 990).
:param float number: The number of expected results (between 1 and 100).
:return: object
If the method is called asynchronously,
returns the request thread.
Ingredient Search # noqa : E501 Search for simple whole foods . # noqa : E501 This method makes a synchronous HTTP request by default . : param async_req bool : param str query : The partial or full ingredient name . ( required ) : param bool add_children : Whether to add children of found foods . : param float min_protein_percent : The minimum percentage of protein the food must have ( between 0 and 100 ) . : param float max_protein_percent : The maximum percentage of protein the food can have ( between 0 and 100 ) . : param float min_fat_percent : The minimum percentage of fat the food must have ( between 0 and 100 ) . : param float max_fat_percent : The maximum percentage of fat the food can have ( between 0 and 100 ) . : param float min_carbs_percent : The minimum percentage of carbs the food must have ( between 0 and 100 ) . : param float max_carbs_percent : The maximum percentage of carbs the food can have ( between 0 and 100 ) . : param bool meta_information : Whether to return more meta information about the ingredients . : param str intolerances : A comma - separated list of intolerances . All recipes returned must not contain ingredients that are not suitable for people with the intolerances entered . See a full list of supported intolerances . : param str sort : The strategy to sort recipes by . See a full list of supported sorting options . : param str sort_direction : The direction in which to sort . Must be either ' asc ' ( ascending ) or ' desc ' ( descending ) . : param float offset : The number of results to skip ( between 0 and 990 ) . : param float number : The number of expected results ( between 1 and 100 ) . : return : object If the method is called asynchronously returns the request thread .
def ingredient_search(self, query, **kwargs):  
        """Ingredient Search  
        Search for simple whole foods (e.g. fruits, vegetables, nuts, grains, meat, fish, dairy etc.).  
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.ingredient_search(query, async_req=True)
        >>> result = thread.get()
        :param async_req bool
        :param str query: The partial or full ingredient name. (required)
        :param bool add_children: Whether to add children of found foods.
        :param float min_protein_percent: The minimum percentage of protein the food must have (between 0 and 100).
        :param float max_protein_percent: The maximum percentage of protein the food can have (between 0 and 100).
        :param float min_fat_percent: The minimum percentage of fat the food must have (between 0 and 100).
        :param float max_fat_percent: The maximum percentage of fat the food can have (between 0 and 100).
        :param float min_carbs_percent: The minimum percentage of carbs the food must have (between 0 and 100).
        :param float max_carbs_percent: The maximum percentage of carbs the food can have (between 0 and 100).
        :param bool meta_information: Whether to return more meta information about the ingredients.
        :param str intolerances: A comma-separated list of intolerances. All recipes returned must not contain ingredients that are not suitable for people with the intolerances entered. See a full list of supported intolerances.
        :param str sort: The strategy to sort recipes by. See a full list of supported sorting options.
        :param str sort_direction: The direction in which to sort. Must be either 'asc' (ascending) or 'desc' (descending).
        :param float offset: The number of results to skip (between 0 and 990).
        :param float number: The number of expected results (between 1 and 100).
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.ingredient_search_with_http_info(query, **kwargs)  
        else:
            (data) = self.ingredient_search_with_http_info(query, **kwargs)  
            return data
def ingredient_search ( self , query , ** kwargs ) : kwargs [ '_return_http_data_only' ] = True if kwargs . get ( 'async_req' ) : return self . ingredient_search_with_http_info ( query , ** kwargs ) else : ( data ) = self . ingredient_search_with_http_info ( query , ** kwargs ) return data
Ingredient Search  # noqa: E501
Search for simple whole foods (e.g.
Ingredient Search # noqa : E501 Search for simple whole foods ( e . g .
# noqa: E501 """Ingredient Search  # noqa: E501

        Search for simple whole foods (e.g. fruits, vegetables, nuts, grains, meat, fish, dairy etc.).  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.ingredient_search(query, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str query: The partial or full ingredient name. (required)
        :param bool add_children: Whether to add children of found foods.
        :param float min_protein_percent: The minimum percentage of protein the food must have (between 0 and 100).
        :param float max_protein_percent: The maximum percentage of protein the food can have (between 0 and 100).
        :param float min_fat_percent: The minimum percentage of fat the food must have (between 0 and 100).
        :param float max_fat_percent: The maximum percentage of fat the food can have (between 0 and 100).
        :param float min_carbs_percent: The minimum percentage of carbs the food must have (between 0 and 100).
        :param float max_carbs_percent: The maximum percentage of carbs the food can have (between 0 and 100).
        :param bool meta_information: Whether to return more meta information about the ingredients.
        :param str intolerances: A comma-separated list of intolerances. All recipes returned must not contain ingredients that are not suitable for people with the intolerances entered. See a full list of supported intolerances.
        :param str sort: The strategy to sort recipes by. See a full list of supported sorting options.
        :param str sort_direction: The direction in which to sort. Must be either 'asc' (ascending) or 'desc' (descending).
        :param float offset: The number of results to skip (between 0 and 990).
        :param float number: The number of expected results (between 1 and 100).
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """ # noqa: E501 # noqa: E501
self
query