cloudmersive_convert_api_client/api/convert_document_api.py
def convert_document_xlsx_to_csv_with_http_info(self, input_file, **kwargs):  # noqa: E501
        """Convert Excel XLSX Spreadsheet to CSV, Single Worksheet  # noqa: E501

        Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format.  Supports both XLSX and XLSB file Excel formats.  If the input file contains multiple worksheets, the first one is used.  If you wish to convert all of the worksheets (not just the first one), be sure to use the xlsx/to/csv/multi API.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.convert_document_xlsx_to_csv_with_http_info(input_file, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param file input_file: Input file to perform the operation on. (required)
        :param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32.  Default is UTF-8.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

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

        collection_formats = {}

        path_params = {}

        query_params = []

        header_params = {}
        if 'output_encoding' in params:
            header_params['outputEncoding'] = params['output_encoding']  # noqa: E501

        form_params = []
        local_var_files = {}
        if 'input_file' in params:
            local_var_files['inputFile'] = params['input_file']  # noqa: E501

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

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['multipart/form-data'])  # noqa: E501

        # Authentication setting
        auth_settings = ['Apikey']  # noqa: E501

        return self.api_client.call_api(
            '/convert/xlsx/to/csv', '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=params.get('async_req'),
            _return_http_data_only=params.get('_return_http_data_only'),
            _preload_content=params.get('_preload_content', True),
            _request_timeout=params.get('_request_timeout'),
            collection_formats=collection_formats)
Convert Excel XLSX Spreadsheet to CSV, Single Worksheet  # noqa: E501

        Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format.  Supports both XLSX and XLSB file Excel formats.  If the input file contains multiple worksheets, the first one is used.  If you wish to convert all of the worksheets (not just the first one), be sure to use the xlsx/to/csv/multi API.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.convert_document_xlsx_to_csv_with_http_info(input_file, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param file input_file: Input file to perform the operation on. (required)
        :param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32.  Default is UTF-8.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        
Convert Excel XLSX Spreadsheet to CSV, Single Worksheet  # noqa: E501
Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format.  Supports both XLSX and XLSB file Excel formats.  If the input file contains multiple worksheets, the first one is used.  If you wish to convert all of the worksheets (not just the first one), be sure to use the xlsx/to/csv/multi API.  # noqa: E501
This method makes a synchronous HTTP request by default.

:param async_req bool
:param file input_file: Input file to perform the operation on. (required)
:param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32.  Default is UTF-8.
:return: str
If the method is called asynchronously,
returns the request thread.
Convert Excel XLSX Spreadsheet to CSV Single Worksheet # noqa : E501 Convert Office Excel Workbooks ( XLSX ) to standard Comma - Separated Values ( CSV ) format . Supports both XLSX and XLSB file Excel formats . If the input file contains multiple worksheets the first one is used . If you wish to convert all of the worksheets ( not just the first one ) be sure to use the xlsx / to / csv / multi API . # noqa : E501 This method makes a synchronous HTTP request by default . : param async_req bool : param file input_file : Input file to perform the operation on . ( required ) : param str output_encoding : Optional set the output text encoding for the result ; possible values are UTF - 8 ASCII and UTF - 32 . Default is UTF - 8 . : return : str If the method is called asynchronously returns the request thread .
def convert_document_xlsx_to_csv_with_http_info(self, input_file, **kwargs):  
        """Convert Excel XLSX Spreadsheet to CSV, Single Worksheet  
        Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format.  Supports both XLSX and XLSB file Excel formats.  If the input file contains multiple worksheets, the first one is used.  If you wish to convert all of the worksheets (not just the first one), be sure to use the xlsx/to/csv/multi API.  
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.convert_document_xlsx_to_csv_with_http_info(input_file, async_req=True)
        >>> result = thread.get()
        :param async_req bool
        :param file input_file: Input file to perform the operation on. (required)
        :param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32.  Default is UTF-8.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['input_file', 'output_encoding']  
        all_params.append('async_req')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in six.iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method convert_document_xlsx_to_csv" % key
                )
            params[key] = val
        del params['kwargs']
        if ('input_file' not in params or
                params['input_file'] is None):
            raise ValueError("Missing the required parameter `input_file` when calling `convert_document_xlsx_to_csv`")  
        collection_formats = {}
        path_params = {}
        query_params = []
        header_params = {}
        if 'output_encoding' in params:
            header_params['outputEncoding'] = params['output_encoding']  
        form_params = []
        local_var_files = {}
        if 'input_file' in params:
            local_var_files['inputFile'] = params['input_file']  
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/octet-stream'])  
        header_params['Content-Type'] = self.api_client.select_header_content_type(  
            ['multipart/form-data'])  
        auth_settings = ['Apikey']  
        return self.api_client.call_api(
            '/convert/xlsx/to/csv', '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=params.get('async_req'),
            _return_http_data_only=params.get('_return_http_data_only'),
            _preload_content=params.get('_preload_content', True),
            _request_timeout=params.get('_request_timeout'),
            collection_formats=collection_formats)
def convert_document_xlsx_to_csv_with_http_info ( self , input_file , ** kwargs ) : all_params = [ 'input_file' , 'output_encoding' ] all_params . append ( 'async_req' ) all_params . append ( '_return_http_data_only' ) all_params . append ( '_preload_content' ) all_params . append ( '_request_timeout' ) params = locals ( ) for key , val in six . iteritems ( params [ 'kwargs' ] ) : if key not in all_params : raise TypeError ( "Got an unexpected keyword argument '%s'" " to method convert_document_xlsx_to_csv" % key ) params [ key ] = val del params [ 'kwargs' ] if ( 'input_file' not in params or params [ 'input_file' ] is None ) : raise ValueError ( "Missing the required parameter `input_file` when calling `convert_document_xlsx_to_csv`" ) collection_formats = { } path_params = { } query_params = [ ] header_params = { } if 'output_encoding' in params : header_params [ 'outputEncoding' ] = params [ 'output_encoding' ] form_params = [ ] local_var_files = { } if 'input_file' in params : local_var_files [ 'inputFile' ] = params [ 'input_file' ] body_params = None header_params [ 'Accept' ] = self . api_client . select_header_accept ( [ 'application/octet-stream' ] ) header_params [ 'Content-Type' ] = self . api_client . select_header_content_type ( [ 'multipart/form-data' ] ) auth_settings = [ 'Apikey' ] return self . api_client . call_api ( '/convert/xlsx/to/csv' , '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 = params . get ( 'async_req' ) , _return_http_data_only = params . get ( '_return_http_data_only' ) , _preload_content = params . get ( '_preload_content' , True ) , _request_timeout = params . get ( '_request_timeout' ) , collection_formats = collection_formats )
Convert Excel XLSX Spreadsheet to CSV, Single Worksheet  # noqa: E501
Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format.
Convert Excel XLSX Spreadsheet to CSV Single Worksheet # noqa : E501 Convert Office Excel Workbooks ( XLSX ) to standard Comma - Separated Values ( CSV ) format .
# noqa: E501 """Convert Excel XLSX Spreadsheet to CSV, Single Worksheet  # noqa: E501

        Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format.  Supports both XLSX and XLSB file Excel formats.  If the input file contains multiple worksheets, the first one is used.  If you wish to convert all of the worksheets (not just the first one), be sure to use the xlsx/to/csv/multi API.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.convert_document_xlsx_to_csv_with_http_info(input_file, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param file input_file: Input file to perform the operation on. (required)
        :param str output_encoding: Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32.  Default is UTF-8.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """ # noqa: E501 # verify the required parameter 'input_file' is set # 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
self
input_file