Skip to content

Commit

Permalink
3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Feb 8, 2021
1 parent 3c31a24 commit 0dfea5c
Show file tree
Hide file tree
Showing 25 changed files with 1,522 additions and 5 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types.
This Python package provides a native API client for [Cloudmersive Document Conversion](https://www.cloudmersive.com/convert-api)

- API version: v1
- Package version: 3.1.1
- Package version: 3.1.2
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -254,6 +254,7 @@ Class | Method | HTTP request | Description
*EditHtmlApi* | [**edit_html_html_append_image_inline**](docs/EditHtmlApi.md#edit_html_html_append_image_inline) | **POST** /convert/edit/html/append/image/inline | Append a Base64 Inline Image to an HTML Document
*EditHtmlApi* | [**edit_html_html_append_paragraph**](docs/EditHtmlApi.md#edit_html_html_append_paragraph) | **POST** /convert/edit/html/append/paragraph | Append a Paragraph to an HTML Document
*EditHtmlApi* | [**edit_html_html_create_blank_document**](docs/EditHtmlApi.md#edit_html_html_create_blank_document) | **POST** /convert/edit/html/create/blank | Create a Blank HTML Document
*EditHtmlApi* | [**edit_html_html_get_links**](docs/EditHtmlApi.md#edit_html_html_get_links) | **POST** /convert/edit/html/extract/links | Extract resolved link URLs from HTML File
*EditPdfApi* | [**edit_pdf_add_annotations**](docs/EditPdfApi.md#edit_pdf_add_annotations) | **POST** /convert/edit/pdf/annotations/add-item | Add one or more PDF annotations, comments in the PDF document
*EditPdfApi* | [**edit_pdf_convert_to_pdf_a**](docs/EditPdfApi.md#edit_pdf_convert_to_pdf_a) | **POST** /convert/edit/pdf/optimize/pdf-a | Convert a PDF file to PDF/A
*EditPdfApi* | [**edit_pdf_decrypt**](docs/EditPdfApi.md#edit_pdf_decrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF
Expand Down Expand Up @@ -291,6 +292,8 @@ Class | Method | HTTP request | Description
*EditTextApi* | [**edit_text_trim_whitespace**](docs/EditTextApi.md#edit_text_trim_whitespace) | **POST** /convert/edit/text/remove/whitespace/trim | Trim leading and trailing whitespace from text string
*MergeDocumentApi* | [**merge_document_docx**](docs/MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge Two Word DOCX Together
*MergeDocumentApi* | [**merge_document_docx_multi**](docs/MergeDocumentApi.md#merge_document_docx_multi) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together
*MergeDocumentApi* | [**merge_document_html**](docs/MergeDocumentApi.md#merge_document_html) | **POST** /convert/merge/html | Merge Two HTML (HTM) Files Together
*MergeDocumentApi* | [**merge_document_html_multi**](docs/MergeDocumentApi.md#merge_document_html_multi) | **POST** /convert/merge/html/multi | Merge Multple HTML (HTM) Files Together
*MergeDocumentApi* | [**merge_document_pdf**](docs/MergeDocumentApi.md#merge_document_pdf) | **POST** /convert/merge/pdf | Merge Two PDF Files Together
*MergeDocumentApi* | [**merge_document_pdf_multi**](docs/MergeDocumentApi.md#merge_document_pdf_multi) | **POST** /convert/merge/pdf/multi | Merge Multple PDF Files Together
*MergeDocumentApi* | [**merge_document_png**](docs/MergeDocumentApi.md#merge_document_png) | **POST** /convert/merge/png/vertical | Merge Two PNG Files Together
Expand All @@ -315,6 +318,7 @@ Class | Method | HTTP request | Description
*ValidateDocumentApi* | [**validate_document_eml_validation**](docs/ValidateDocumentApi.md#validate_document_eml_validation) | **POST** /convert/validate/eml | Validate if an EML file is executable
*ValidateDocumentApi* | [**validate_document_executable_validation**](docs/ValidateDocumentApi.md#validate_document_executable_validation) | **POST** /convert/validate/executable | Validate if a file is executable
*ValidateDocumentApi* | [**validate_document_g_zip_validation**](docs/ValidateDocumentApi.md#validate_document_g_zip_validation) | **POST** /convert/validate/gzip | Validate a GZip Archive file (gzip or gz)
*ValidateDocumentApi* | [**validate_document_html_ssrf_validation**](docs/ValidateDocumentApi.md#validate_document_html_ssrf_validation) | **POST** /convert/validate/html/ssrf-threat-check | Validate an HTML file and checks for SSRF threats
*ValidateDocumentApi* | [**validate_document_html_validation**](docs/ValidateDocumentApi.md#validate_document_html_validation) | **POST** /convert/validate/html | Validate an HTML file
*ValidateDocumentApi* | [**validate_document_image_validation**](docs/ValidateDocumentApi.md#validate_document_image_validation) | **POST** /convert/validate/image | Validate an Image File
*ValidateDocumentApi* | [**validate_document_jpg_validation**](docs/ValidateDocumentApi.md#validate_document_jpg_validation) | **POST** /convert/validate/jpg | Validate a JPG File
Expand Down Expand Up @@ -470,10 +474,14 @@ Class | Method | HTTP request | Description
- [GetXlsxStylesResponse](docs/GetXlsxStylesResponse.md)
- [GetXlsxWorksheetsRequest](docs/GetXlsxWorksheetsRequest.md)
- [GetXlsxWorksheetsResponse](docs/GetXlsxWorksheetsResponse.md)
- [HtmlGetLinksResponse](docs/HtmlGetLinksResponse.md)
- [HtmlHyperlink](docs/HtmlHyperlink.md)
- [HtmlMdResult](docs/HtmlMdResult.md)
- [HtmlSsrfThreatCheckResult](docs/HtmlSsrfThreatCheckResult.md)
- [HtmlTemplateApplicationRequest](docs/HtmlTemplateApplicationRequest.md)
- [HtmlTemplateApplicationResponse](docs/HtmlTemplateApplicationResponse.md)
- [HtmlTemplateOperation](docs/HtmlTemplateOperation.md)
- [HtmlThreatLink](docs/HtmlThreatLink.md)
- [HtmlToOfficeRequest](docs/HtmlToOfficeRequest.md)
- [HtmlToPdfRequest](docs/HtmlToPdfRequest.md)
- [HtmlToPngRequest](docs/HtmlToPngRequest.md)
Expand Down
4 changes: 4 additions & 0 deletions cloudmersive_convert_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,14 @@
from cloudmersive_convert_api_client.models.get_xlsx_styles_response import GetXlsxStylesResponse
from cloudmersive_convert_api_client.models.get_xlsx_worksheets_request import GetXlsxWorksheetsRequest
from cloudmersive_convert_api_client.models.get_xlsx_worksheets_response import GetXlsxWorksheetsResponse
from cloudmersive_convert_api_client.models.html_get_links_response import HtmlGetLinksResponse
from cloudmersive_convert_api_client.models.html_hyperlink import HtmlHyperlink
from cloudmersive_convert_api_client.models.html_md_result import HtmlMdResult
from cloudmersive_convert_api_client.models.html_ssrf_threat_check_result import HtmlSsrfThreatCheckResult
from cloudmersive_convert_api_client.models.html_template_application_request import HtmlTemplateApplicationRequest
from cloudmersive_convert_api_client.models.html_template_application_response import HtmlTemplateApplicationResponse
from cloudmersive_convert_api_client.models.html_template_operation import HtmlTemplateOperation
from cloudmersive_convert_api_client.models.html_threat_link import HtmlThreatLink
from cloudmersive_convert_api_client.models.html_to_office_request import HtmlToOfficeRequest
from cloudmersive_convert_api_client.models.html_to_pdf_request import HtmlToPdfRequest
from cloudmersive_convert_api_client.models.html_to_png_request import HtmlToPngRequest
Expand Down
99 changes: 99 additions & 0 deletions cloudmersive_convert_api_client/api/edit_html_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,3 +579,102 @@ def edit_html_html_create_blank_document_with_http_info(self, **kwargs): # noqa
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def edit_html_html_get_links(self, **kwargs): # noqa: E501
"""Extract resolved link URLs from HTML File # noqa: E501
Extracts the resolved link URLs, fully-qualified if possible, from an input HTML file. # 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_get_links(async_req=True)
>>> result = thread.get()
:param async_req bool
: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.
:param str base_url: Optional: Base URL of the page, such as https://mydomain.com
:return: HtmlGetLinksResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.edit_html_html_get_links_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.edit_html_html_get_links_with_http_info(**kwargs) # noqa: E501
return data

def edit_html_html_get_links_with_http_info(self, **kwargs): # noqa: E501
"""Extract resolved link URLs from HTML File # noqa: E501
Extracts the resolved link URLs, fully-qualified if possible, from an input HTML file. # 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_get_links_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
: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.
:param str base_url: Optional: Base URL of the page, such as https://mydomain.com
:return: HtmlGetLinksResponse
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['input_file', 'input_file_url', 'base_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_get_links" % key
)
params[key] = val
del params['kwargs']

collection_formats = {}

path_params = {}

query_params = []

header_params = {}
if 'input_file_url' in params:
header_params['inputFileUrl'] = params['input_file_url'] # noqa: E501
if 'base_url' in params:
header_params['baseUrl'] = params['base_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/extract/links', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='HtmlGetLinksResponse', # 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)
Loading

0 comments on commit 0dfea5c

Please sign in to comment.