python/spoonacular/com/spoonacular/default_api.py
def visualize_equipment_with_http_info(self, instructions, **kwargs):  # noqa: E501
        """Visualize Equipment  # noqa: E501

        Visualize the equipment used to make a recipe. You can play around with that endpoint!  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.visualize_equipment_with_http_info(instructions, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str instructions: The recipe's instructions. (required)
        :param str view: How to visualize the equipment, either \\\"grid\\\" or \\\"list\\\".
        :param bool default_css: Whether the default CSS should be added to the response.
        :param bool show_backlink: Whether to show a backlink to spoonacular. If set false, this call counts against your quota.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """

        local_var_params = locals()

        all_params = ['instructions', 'view', 'default_css', 'show_backlink']  # 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 visualize_equipment" % key
                )
            local_var_params[key] = val
        del local_var_params['kwargs']
        # verify the required parameter 'instructions' is set
        if ('instructions' not in local_var_params or
                local_var_params['instructions'] is None):
            raise ApiValueError("Missing the required parameter `instructions` when calling `visualize_equipment`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}
        if 'instructions' in local_var_params:
            form_params.append(('instructions', local_var_params['instructions']))  # noqa: E501
        if 'view' in local_var_params:
            form_params.append(('view', local_var_params['view']))  # noqa: E501
        if 'default_css' in local_var_params:
            form_params.append(('defaultCss', local_var_params['default_css']))  # noqa: E501
        if 'show_backlink' in local_var_params:
            form_params.append(('showBacklink', local_var_params['show_backlink']))  # noqa: E501

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

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['application/x-www-form-urlencoded'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self.api_client.call_api(
            '/recipes/visualizeEquipment', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='str',  # 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)
Visualize Equipment  # noqa: E501

        Visualize the equipment used to make a recipe. You can play around with that endpoint!  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.visualize_equipment_with_http_info(instructions, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str instructions: The recipe's instructions. (required)
        :param str view: How to visualize the equipment, either \\\"grid\\\" or \\\"list\\\".
        :param bool default_css: Whether the default CSS should be added to the response.
        :param bool show_backlink: Whether to show a backlink to spoonacular. If set false, this call counts against your quota.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        
Visualize Equipment  # noqa: E501
Visualize the equipment used to make a recipe. You can play around with that endpoint.  # noqa: E501
This method makes a synchronous HTTP request by default.

:param async_req bool
:param str instructions: The recipe's instructions.
Visualize Equipment # noqa : E501 Visualize the equipment used to make a recipe . You can play around with that endpoint . # noqa : E501 This method makes a synchronous HTTP request by default . : param async_req bool : param str instructions : The recipe ' s instructions .
def visualize_equipment_with_http_info(self, instructions, **kwargs):  
        """Visualize Equipment  
        Visualize the equipment used to make a recipe. You can play around with that endpoint!  
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.visualize_equipment_with_http_info(instructions, async_req=True)
        >>> result = thread.get()
        :param async_req bool
        :param str instructions: The recipe's instructions. (required)
        :param str view: How to visualize the equipment, either \\\"grid\\\" or \\\"list\\\".
        :param bool default_css: Whether the default CSS should be added to the response.
        :param bool show_backlink: Whether to show a backlink to spoonacular. If set false, this call counts against your quota.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """
        local_var_params = locals()
        all_params = ['instructions', 'view', 'default_css', 'show_backlink']  
        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 visualize_equipment" % key
                )
            local_var_params[key] = val
        del local_var_params['kwargs']
        if ('instructions' not in local_var_params or
                local_var_params['instructions'] is None):
            raise ApiValueError("Missing the required parameter `instructions` when calling `visualize_equipment`")  
        collection_formats = {}
        path_params = {}
        query_params = []
        header_params = {}
        form_params = []
        local_var_files = {}
        if 'instructions' in local_var_params:
            form_params.append(('instructions', local_var_params['instructions']))  
        if 'view' in local_var_params:
            form_params.append(('view', local_var_params['view']))  
        if 'default_css' in local_var_params:
            form_params.append(('defaultCss', local_var_params['default_css']))  
        if 'show_backlink' in local_var_params:
            form_params.append(('showBacklink', local_var_params['show_backlink']))  
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept(
            ['text/html'])  
        header_params['Content-Type'] = self.api_client.select_header_content_type(  
            ['application/x-www-form-urlencoded'])  
        auth_settings = []  
        return self.api_client.call_api(
            '/recipes/visualizeEquipment', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='str',  
            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 visualize_equipment_with_http_info ( self , instructions , ** kwargs ) : local_var_params = locals ( ) all_params = [ 'instructions' , 'view' , 'default_css' , 'show_backlink' ] 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 visualize_equipment" % key ) local_var_params [ key ] = val del local_var_params [ 'kwargs' ] if ( 'instructions' not in local_var_params or local_var_params [ 'instructions' ] is None ) : raise ApiValueError ( "Missing the required parameter `instructions` when calling `visualize_equipment`" ) collection_formats = { } path_params = { } query_params = [ ] header_params = { } form_params = [ ] local_var_files = { } if 'instructions' in local_var_params : form_params . append ( ( 'instructions' , local_var_params [ 'instructions' ] ) ) if 'view' in local_var_params : form_params . append ( ( 'view' , local_var_params [ 'view' ] ) ) if 'default_css' in local_var_params : form_params . append ( ( 'defaultCss' , local_var_params [ 'default_css' ] ) ) if 'show_backlink' in local_var_params : form_params . append ( ( 'showBacklink' , local_var_params [ 'show_backlink' ] ) ) body_params = None header_params [ 'Accept' ] = self . api_client . select_header_accept ( [ 'text/html' ] ) header_params [ 'Content-Type' ] = self . api_client . select_header_content_type ( [ 'application/x-www-form-urlencoded' ] ) auth_settings = [ ] return self . api_client . call_api ( '/recipes/visualizeEquipment' , 'POST' , path_params , query_params , header_params , body = body_params , post_params = form_params , files = local_var_files , response_type = 'str' , 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 )
Visualize Equipment  # noqa: E501
Visualize the equipment used to make a recipe.
Visualize Equipment # noqa : E501 Visualize the equipment used to make a recipe .
# noqa: E501 """Visualize Equipment  # noqa: E501

        Visualize the equipment used to make a recipe. You can play around with that endpoint!  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.visualize_equipment_with_http_info(instructions, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str instructions: The recipe's instructions. (required)
        :param str view: How to visualize the equipment, either \\\"grid\\\" or \\\"list\\\".
        :param bool default_css: Whether the default CSS should be added to the response.
        :param bool show_backlink: Whether to show a backlink to spoonacular. If set false, this call counts against your quota.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """ # noqa: E501 # verify the required parameter 'instructions' is set # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # HTTP header `Content-Type` # noqa: E501 # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501 # noqa: E501
self
instructions