python/spoonacular/com/spoonacular/default_api.py
def analyze_recipe_instructions_with_http_info(self, instructions, **kwargs):  # noqa: E501
        """Analyze Recipe Instructions  # noqa: E501

        This endpoint allows you to break down instructions into atomic steps. Furthermore, each step will contain the ingredients and equipment required. Additionally, all ingredients and equipment from the recipe's instructions will be extracted independently of the step they're used in.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.analyze_recipe_instructions_with_http_info(instructions, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str instructions: The instructions to be analyzed. (required)
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """

        local_var_params = locals()

        all_params = ['instructions']  # 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 analyze_recipe_instructions" % 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 `analyze_recipe_instructions`")  # 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

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/json'])  # 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/analyzeInstructions', 'POST',
            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)
Analyze Recipe Instructions  # noqa: E501

        This endpoint allows you to break down instructions into atomic steps. Furthermore, each step will contain the ingredients and equipment required. Additionally, all ingredients and equipment from the recipe's instructions will be extracted independently of the step they're used in.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.analyze_recipe_instructions_with_http_info(instructions, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str instructions: The instructions to be analyzed. (required)
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        
Analyze Recipe Instructions  # noqa: E501
This endpoint allows you to break down instructions into atomic steps. Furthermore, each step will contain the ingredients and equipment required. Additionally, all ingredients and equipment from the recipe's instructions will be extracted independently of the step they're used in.  # noqa: E501
This method makes a synchronous HTTP request by default.

:param async_req bool
:param str instructions: The instructions to be analyzed. (required)
:return: object
If the method is called asynchronously,
returns the request thread.
Analyze Recipe Instructions # noqa : E501 This endpoint allows you to break down instructions into atomic steps . Furthermore each step will contain the ingredients and equipment required . Additionally all ingredients and equipment from the recipe ' s instructions will be extracted independently of the step they ' re used in . # noqa : E501 This method makes a synchronous HTTP request by default . : param async_req bool : param str instructions : The instructions to be analyzed . ( required ) : return : object If the method is called asynchronously returns the request thread .
def analyze_recipe_instructions_with_http_info(self, instructions, **kwargs):  
        """Analyze Recipe Instructions  
        This endpoint allows you to break down instructions into atomic steps. Furthermore, each step will contain the ingredients and equipment required. Additionally, all ingredients and equipment from the recipe's instructions will be extracted independently of the step they're used in.  
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.analyze_recipe_instructions_with_http_info(instructions, async_req=True)
        >>> result = thread.get()
        :param async_req bool
        :param str instructions: The instructions to be analyzed. (required)
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        local_var_params = locals()
        all_params = ['instructions']  
        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 analyze_recipe_instructions" % 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 `analyze_recipe_instructions`")  
        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']))  
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/json'])  
        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/analyzeInstructions', 'POST',
            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 analyze_recipe_instructions_with_http_info ( self , instructions , ** kwargs ) : local_var_params = locals ( ) all_params = [ 'instructions' ] 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 analyze_recipe_instructions" % 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 `analyze_recipe_instructions`" ) 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' ] ) ) body_params = None header_params [ 'Accept' ] = self . api_client . select_header_accept ( [ 'application/json' ] ) 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/analyzeInstructions' , 'POST' , 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 )
Analyze Recipe Instructions  # noqa: E501
This endpoint allows you to break down instructions into atomic steps.
Analyze Recipe Instructions # noqa : E501 This endpoint allows you to break down instructions into atomic steps .
# noqa: E501 """Analyze Recipe Instructions  # noqa: E501

        This endpoint allows you to break down instructions into atomic steps. Furthermore, each step will contain the ingredients and equipment required. Additionally, all ingredients and equipment from the recipe's instructions will be extracted independently of the step they're used in.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.analyze_recipe_instructions_with_http_info(instructions, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str instructions: The instructions to be analyzed. (required)
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """ # noqa: E501 # verify the required parameter 'instructions' is set # 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