python/spoonacular/com/spoonacular/default_api.py
def talk_to_chatbot_with_http_info(self, text, **kwargs):  # noqa: E501
        """Talk to Chatbot  # noqa: E501

        This endpoint can be used to have a conversation about food with the spoonacular chatbot. Use the \"Get Conversation Suggests\" endpoint to show your user what he or she can say.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.talk_to_chatbot_with_http_info(text, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str text: The request / question / answer from the user to the chatbot. (required)
        :param str context_id: An arbitrary globally unique id for your conversation. The conversation can contain states so you should pass your context id if you want the bot to be able to remember the conversation.
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """

        local_var_params = locals()

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

        collection_formats = {}

        path_params = {}

        query_params = []
        if 'text' in local_var_params:
            query_params.append(('text', local_var_params['text']))  # noqa: E501
        if 'context_id' in local_var_params:
            query_params.append(('contextId', local_var_params['context_id']))  # noqa: E501

        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/converse', '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)
Talk to Chatbot  # noqa: E501

        This endpoint can be used to have a conversation about food with the spoonacular chatbot. Use the \"Get Conversation Suggests\" endpoint to show your user what he or she can say.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.talk_to_chatbot_with_http_info(text, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str text: The request / question / answer from the user to the chatbot. (required)
        :param str context_id: An arbitrary globally unique id for your conversation. The conversation can contain states so you should pass your context id if you want the bot to be able to remember the conversation.
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        
Talk to Chatbot  # noqa: E501
This endpoint can be used to have a conversation about food with the spoonacular chatbot. Use the \"Get Conversation Suggests\" endpoint to show your user what he or she can say.  # noqa: E501
This method makes a synchronous HTTP request by default.

:param async_req bool
:param str text: The request / question / answer from the user to the chatbot. (required)
:param str context_id: An arbitrary globally unique id for your conversation. The conversation can contain states so you should pass your context id if you want the bot to be able to remember the conversation.
:return: object
If the method is called asynchronously,
returns the request thread.
Talk to Chatbot # noqa : E501 This endpoint can be used to have a conversation about food with the spoonacular chatbot . Use the \ " Get Conversation Suggests \ " endpoint to show your user what he or she can say . # noqa : E501 This method makes a synchronous HTTP request by default . : param async_req bool : param str text : The request / question / answer from the user to the chatbot . ( required ) : param str context_id : An arbitrary globally unique id for your conversation . The conversation can contain states so you should pass your context id if you want the bot to be able to remember the conversation . : return : object If the method is called asynchronously returns the request thread .
def talk_to_chatbot_with_http_info(self, text, **kwargs):  
        """Talk to Chatbot  
        This endpoint can be used to have a conversation about food with the spoonacular chatbot. Use the \"Get Conversation Suggests\" endpoint to show your user what he or she can say.  
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.talk_to_chatbot_with_http_info(text, async_req=True)
        >>> result = thread.get()
        :param async_req bool
        :param str text: The request / question / answer from the user to the chatbot. (required)
        :param str context_id: An arbitrary globally unique id for your conversation. The conversation can contain states so you should pass your context id if you want the bot to be able to remember the conversation.
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        local_var_params = locals()
        all_params = ['text', 'context_id']  
        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 talk_to_chatbot" % key
                )
            local_var_params[key] = val
        del local_var_params['kwargs']
        if ('text' not in local_var_params or
                local_var_params['text'] is None):
            raise ApiValueError("Missing the required parameter `text` when calling `talk_to_chatbot`")  
        collection_formats = {}
        path_params = {}
        query_params = []
        if 'text' in local_var_params:
            query_params.append(('text', local_var_params['text']))  
        if 'context_id' in local_var_params:
            query_params.append(('contextId', local_var_params['context_id']))  
        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/converse', '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 talk_to_chatbot_with_http_info ( self , text , ** kwargs ) : local_var_params = locals ( ) all_params = [ 'text' , 'context_id' ] 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 talk_to_chatbot" % key ) local_var_params [ key ] = val del local_var_params [ 'kwargs' ] if ( 'text' not in local_var_params or local_var_params [ 'text' ] is None ) : raise ApiValueError ( "Missing the required parameter `text` when calling `talk_to_chatbot`" ) collection_formats = { } path_params = { } query_params = [ ] if 'text' in local_var_params : query_params . append ( ( 'text' , local_var_params [ 'text' ] ) ) if 'context_id' in local_var_params : query_params . append ( ( 'contextId' , local_var_params [ 'context_id' ] ) ) 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/converse' , '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 )
Talk to Chatbot  # noqa: E501
This endpoint can be used to have a conversation about food with the spoonacular chatbot.
Talk to Chatbot # noqa : E501 This endpoint can be used to have a conversation about food with the spoonacular chatbot .
# noqa: E501 """Talk to Chatbot  # noqa: E501

        This endpoint can be used to have a conversation about food with the spoonacular chatbot. Use the \"Get Conversation Suggests\" endpoint to show your user what he or she can say.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.talk_to_chatbot_with_http_info(text, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str text: The request / question / answer from the user to the chatbot. (required)
        :param str context_id: An arbitrary globally unique id for your conversation. The conversation can contain states so you should pass your context id if you want the bot to be able to remember the conversation.
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """ # noqa: E501 # verify the required parameter 'text' is set # noqa: E501 # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501 # noqa: E501
self
text