cloudmersive_convert_api_client/api/edit_html_api.py
def edit_html_html_set_rel_canonical_with_http_info(self, canonical_url, **kwargs):  # noqa: E501
        """Sets the rel canonical URL for the HTML document  # noqa: E501

        Sets the rel canonical URL of an HTML document.  This is useful for telling search engines and other indexers which pages are duplicates of eachother; any pages with the rel=canonical tag will be treated as duplicates of the canonical URL.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.edit_html_html_set_rel_canonical_with_http_info(canonical_url, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str canonical_url: The HTML canonical URL to set. (required)
        :param file input_file: Optional: Input file to perform the operation on.
        :param str input_file_url: Optional: URL of a file to operate on as input.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['canonical_url', 'input_file', 'input_file_url']  # 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 edit_html_html_set_rel_canonical" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'canonical_url' is set
        if ('canonical_url' not in params or
                params['canonical_url'] is None):
            raise ValueError("Missing the required parameter `canonical_url` when calling `edit_html_html_set_rel_canonical`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []

        header_params = {}
        if 'input_file_url' in params:
            header_params['inputFileUrl'] = params['input_file_url']  # noqa: E501
        if 'canonical_url' in params:
            header_params['canonicalUrl'] = params['canonical_url']  # 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/json', 'text/json', 'application/xml', 'text/xml'])  # noqa: E501

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

        return self.api_client.call_api(
            '/convert/edit/html/head/set/rel-canonical-url', '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)
Sets the rel canonical URL for the HTML document  # noqa: E501

        Sets the rel canonical URL of an HTML document.  This is useful for telling search engines and other indexers which pages are duplicates of eachother; any pages with the rel=canonical tag will be treated as duplicates of the canonical URL.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.edit_html_html_set_rel_canonical_with_http_info(canonical_url, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str canonical_url: The HTML canonical URL to set. (required)
        :param file input_file: Optional: Input file to perform the operation on.
        :param str input_file_url: Optional: URL of a file to operate on as input.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        
Sets the rel canonical URL for the HTML document  # noqa: E501
Sets the rel canonical URL of an HTML document.  This is useful for telling search engines and other indexers which pages are duplicates of eachother; any pages with the rel=canonical tag will be treated as duplicates of the canonical URL.  # noqa: E501
This method makes a synchronous HTTP request by default.

:param async_req bool
:param str canonical_url: The HTML canonical URL to set. (required)
:param file input_file: Optional: Input file to perform the operation on.
:param str input_file_url: Optional: URL of a file to operate on as input.
:return: str
If the method is called asynchronously,
returns the request thread.
Sets the rel canonical URL for the HTML document # noqa : E501 Sets the rel canonical URL of an HTML document . This is useful for telling search engines and other indexers which pages are duplicates of eachother ; any pages with the rel = canonical tag will be treated as duplicates of the canonical URL . # noqa : E501 This method makes a synchronous HTTP request by default . : param async_req bool : param str canonical_url : The HTML canonical URL to set . ( required ) : param file input_file : Optional : Input file to perform the operation on . : param str input_file_url : Optional : URL of a file to operate on as input . : return : str If the method is called asynchronously returns the request thread .
def edit_html_html_set_rel_canonical_with_http_info(self, canonical_url, **kwargs):  
        """Sets the rel canonical URL for the HTML document  
        Sets the rel canonical URL of an HTML document.  This is useful for telling search engines and other indexers which pages are duplicates of eachother; any pages with the rel=canonical tag will be treated as duplicates of the canonical URL.  
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.edit_html_html_set_rel_canonical_with_http_info(canonical_url, async_req=True)
        >>> result = thread.get()
        :param async_req bool
        :param str canonical_url: The HTML canonical URL to set. (required)
        :param file input_file: Optional: Input file to perform the operation on.
        :param str input_file_url: Optional: URL of a file to operate on as input.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['canonical_url', 'input_file', 'input_file_url']  
        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 edit_html_html_set_rel_canonical" % key
                )
            params[key] = val
        del params['kwargs']
        if ('canonical_url' not in params or
                params['canonical_url'] is None):
            raise ValueError("Missing the required parameter `canonical_url` when calling `edit_html_html_set_rel_canonical`")  
        collection_formats = {}
        path_params = {}
        query_params = []
        header_params = {}
        if 'input_file_url' in params:
            header_params['inputFileUrl'] = params['input_file_url']  
        if 'canonical_url' in params:
            header_params['canonicalUrl'] = params['canonical_url']  
        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/json', 'text/json', 'application/xml', 'text/xml'])  
        auth_settings = ['Apikey']  
        return self.api_client.call_api(
            '/convert/edit/html/head/set/rel-canonical-url', '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 edit_html_html_set_rel_canonical_with_http_info ( self , canonical_url , ** kwargs ) : all_params = [ 'canonical_url' , 'input_file' , 'input_file_url' ] 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 edit_html_html_set_rel_canonical" % key ) params [ key ] = val del params [ 'kwargs' ] if ( 'canonical_url' not in params or params [ 'canonical_url' ] is None ) : raise ValueError ( "Missing the required parameter `canonical_url` when calling `edit_html_html_set_rel_canonical`" ) collection_formats = { } path_params = { } query_params = [ ] header_params = { } if 'input_file_url' in params : header_params [ 'inputFileUrl' ] = params [ 'input_file_url' ] if 'canonical_url' in params : header_params [ 'canonicalUrl' ] = params [ 'canonical_url' ] 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/json' , 'text/json' , 'application/xml' , 'text/xml' ] ) auth_settings = [ 'Apikey' ] return self . api_client . call_api ( '/convert/edit/html/head/set/rel-canonical-url' , '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 )
Sets the rel canonical URL for the HTML document  # noqa: E501
Sets the rel canonical URL of an HTML document.
Sets the rel canonical URL for the HTML document # noqa : E501 Sets the rel canonical URL of an HTML document .
# noqa: E501 """Sets the rel canonical URL for the HTML document  # noqa: E501

        Sets the rel canonical URL of an HTML document.  This is useful for telling search engines and other indexers which pages are duplicates of eachother; any pages with the rel=canonical tag will be treated as duplicates of the canonical URL.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.edit_html_html_set_rel_canonical_with_http_info(canonical_url, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str canonical_url: The HTML canonical URL to set. (required)
        :param file input_file: Optional: Input file to perform the operation on.
        :param str input_file_url: Optional: URL of a file to operate on as input.
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """ # noqa: E501 # verify the required parameter 'canonical_url' is set # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501
self
canonical_url