python/spoonacular/com/spoonacular/default_api.py
def search_grocery_products_by_upc_with_http_info(self, upc, **kwargs):  # noqa: E501
        """Search Grocery Products by UPC  # noqa: E501

        Get information about a packaged food using its UPC.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.search_grocery_products_by_upc_with_http_info(upc, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param float upc: The product's UPC. (required)
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """

        local_var_params = locals()

        all_params = ['upc']  # noqa: E501
        all_params.append('async_req')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        for key, val in six.iteritems(local_var_params['kwargs']):
            if key not in all_params:
                raise ApiTypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method search_grocery_products_by_upc" % key
                )
            local_var_params[key] = val
        del local_var_params['kwargs']
        # verify the required parameter 'upc' is set
        if ('upc' not in local_var_params or
                local_var_params['upc'] is None):
            raise ApiValueError("Missing the required parameter `upc` when calling `search_grocery_products_by_upc`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'upc' in local_var_params:
            path_params['upc'] = local_var_params['upc']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self.api_client.call_api(
            '/food/products/upc/{upc}', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='object',  # noqa: E501
            auth_settings=auth_settings,
            async_req=local_var_params.get('async_req'),
            _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
            _preload_content=local_var_params.get('_preload_content', True),
            _request_timeout=local_var_params.get('_request_timeout'),
            collection_formats=collection_formats)
Search Grocery Products by UPC  # noqa: E501

        Get information about a packaged food using its UPC.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.search_grocery_products_by_upc_with_http_info(upc, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param float upc: The product's UPC. (required)
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        
Search Grocery Products by UPC  # noqa: E501
Get information about a packaged food using its UPC.  # noqa: E501
This method makes a synchronous HTTP request by default.

:param async_req bool
:param float upc: The product's UPC. (required)
:return: object
If the method is called asynchronously,
returns the request thread.
Search Grocery Products by UPC # noqa : E501 Get information about a packaged food using its UPC . # noqa : E501 This method makes a synchronous HTTP request by default . : param async_req bool : param float upc : The product ' s UPC . ( required ) : return : object If the method is called asynchronously returns the request thread .
def search_grocery_products_by_upc_with_http_info(self, upc, **kwargs):  
        """Search Grocery Products by UPC  
        Get information about a packaged food using its UPC.  
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.search_grocery_products_by_upc_with_http_info(upc, async_req=True)
        >>> result = thread.get()
        :param async_req bool
        :param float upc: The product's UPC. (required)
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        local_var_params = locals()
        all_params = ['upc']  
        all_params.append('async_req')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        for key, val in six.iteritems(local_var_params['kwargs']):
            if key not in all_params:
                raise ApiTypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method search_grocery_products_by_upc" % key
                )
            local_var_params[key] = val
        del local_var_params['kwargs']
        if ('upc' not in local_var_params or
                local_var_params['upc'] is None):
            raise ApiValueError("Missing the required parameter `upc` when calling `search_grocery_products_by_upc`")  
        collection_formats = {}
        path_params = {}
        if 'upc' in local_var_params:
            path_params['upc'] = local_var_params['upc']  
        query_params = []
        header_params = {}
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/json'])  
        auth_settings = []  
        return self.api_client.call_api(
            '/food/products/upc/{upc}', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='object',  
            auth_settings=auth_settings,
            async_req=local_var_params.get('async_req'),
            _return_http_data_only=local_var_params.get('_return_http_data_only'),  
            _preload_content=local_var_params.get('_preload_content', True),
            _request_timeout=local_var_params.get('_request_timeout'),
            collection_formats=collection_formats)
def search_grocery_products_by_upc_with_http_info ( self , upc , ** kwargs ) : local_var_params = locals ( ) all_params = [ 'upc' ] all_params . append ( 'async_req' ) all_params . append ( '_return_http_data_only' ) all_params . append ( '_preload_content' ) all_params . append ( '_request_timeout' ) for key , val in six . iteritems ( local_var_params [ 'kwargs' ] ) : if key not in all_params : raise ApiTypeError ( "Got an unexpected keyword argument '%s'" " to method search_grocery_products_by_upc" % key ) local_var_params [ key ] = val del local_var_params [ 'kwargs' ] if ( 'upc' not in local_var_params or local_var_params [ 'upc' ] is None ) : raise ApiValueError ( "Missing the required parameter `upc` when calling `search_grocery_products_by_upc`" ) collection_formats = { } path_params = { } if 'upc' in local_var_params : path_params [ 'upc' ] = local_var_params [ 'upc' ] query_params = [ ] header_params = { } form_params = [ ] local_var_files = { } body_params = None header_params [ 'Accept' ] = self . api_client . select_header_accept ( [ 'application/json' ] ) auth_settings = [ ] return self . api_client . call_api ( '/food/products/upc/{upc}' , 'GET' , path_params , query_params , header_params , body = body_params , post_params = form_params , files = local_var_files , response_type = 'object' , auth_settings = auth_settings , async_req = local_var_params . get ( 'async_req' ) , _return_http_data_only = local_var_params . get ( '_return_http_data_only' ) , _preload_content = local_var_params . get ( '_preload_content' , True ) , _request_timeout = local_var_params . get ( '_request_timeout' ) , collection_formats = collection_formats )
Search Grocery Products by UPC  # noqa: E501
Get information about a packaged food using its UPC.
Search Grocery Products by UPC # noqa : E501 Get information about a packaged food using its UPC .
# noqa: E501 """Search Grocery Products by UPC  # noqa: E501

        Get information about a packaged food using its UPC.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.search_grocery_products_by_upc_with_http_info(upc, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param float upc: The product's UPC. (required)
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """ # noqa: E501 # verify the required parameter 'upc' is set # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501 # noqa: E501
self
upc