tencentcloud-sdk-python-essbasic 3.1.126__py2.py3-none-any.whl → 3.1.128__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/essbasic/v20210526/essbasic_client.py +63 -0
- tencentcloud/essbasic/v20210526/essbasic_client_async.py +53 -0
- tencentcloud/essbasic/v20210526/models.py +390 -323
- {tencentcloud_sdk_python_essbasic-3.1.126.dist-info → tencentcloud_sdk_python_essbasic-3.1.128.dist-info}/METADATA +2 -2
- {tencentcloud_sdk_python_essbasic-3.1.126.dist-info → tencentcloud_sdk_python_essbasic-3.1.128.dist-info}/RECORD +8 -8
- {tencentcloud_sdk_python_essbasic-3.1.126.dist-info → tencentcloud_sdk_python_essbasic-3.1.128.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_essbasic-3.1.126.dist-info → tencentcloud_sdk_python_essbasic-3.1.128.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -360,6 +360,7 @@ class EssbasicClient(AbstractClient):
|
|
|
360
360
|
适用场景1:已经上传了一个word文件,希望将该word文件转换成pdf文件后发起合同
|
|
361
361
|
适用场景2:已经上传了一个jpg图片文件,希望将该图片文件转换成pdf文件后发起合同<br />
|
|
362
362
|
转换文件是一个耗时操作,若想查看转换任务是否完成,可以通过<a href="https://qian.tencent.com/developers/partnerApis/files/ChannelGetTaskResultApi" target="_blank">查询转换任务状态</a>接口获取任务状态。<br />
|
|
363
|
+
<font color="red">此接口于 2026 年 12月 31 日下线</font>,请使用新接口: <a href="https://qian.tencent.com/developers/partnerApis/files/CreateFileConvertTask" target="_blank">查询文件转换任务状态(CreateFileConvertTask)</a><br />
|
|
363
364
|
注:
|
|
364
365
|
1. `支持的文件类型有doc、docx、xls、xlsx、html、jpg、jpeg、png、bmp、txt`
|
|
365
366
|
2. `可通过发起合同时设置预览来检查转换文件是否达到预期效果`
|
|
@@ -1569,6 +1570,7 @@ class EssbasicClient(AbstractClient):
|
|
|
1569
1570
|
前提条件:已调用 <a href="https://qian.tencent.com/developers/partnerApis/files/ChannelCreateConvertTaskApi" target="_blank">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />
|
|
1570
1571
|
|
|
1571
1572
|
适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源ID。<br />
|
|
1573
|
+
<font color="red">此接口于 2026 年 12月 31 日下线</font>,请使用新接口: <a href="https://qian.tencent.com/developers/partnerApis/files/DescribeFileConvertTask" target="_blank">查询文件转换任务状态(DescribeFileConvertTask)</a><br />
|
|
1572
1574
|
注:
|
|
1573
1575
|
1. `大文件转换所需的时间可能会比较长。`
|
|
1574
1576
|
2. `本接口返回的文件资源ID就是PDF资源ID,可以直接用于【用PDF文件创建签署流程】接口发起合同。`
|
|
@@ -2089,6 +2091,37 @@ class EssbasicClient(AbstractClient):
|
|
|
2089
2091
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2090
2092
|
|
|
2091
2093
|
|
|
2094
|
+
def CreateFileConvertTask(self, request):
|
|
2095
|
+
r"""此接口(CreateFileConvertTask)用来将word、excel、html、图片、txt类型文件转换为PDF文件。<br />
|
|
2096
|
+
<font color="red">原功能接口: </font><a href="https://qian.tencent.com/developers/partnerApis/files/ChannelCreateConvertTaskApi" target="_blank">创建文件转换服务(ChannelCreateConvertTaskApi)</a><br />
|
|
2097
|
+
前提条件:源文件已经通过 <a href="https://qian.tencent.com/developers/partnerApis/files/UploadFiles" target="_blank">文件上传接口</a>完成上传,并得到了源文件的资源Id。
|
|
2098
|
+
适用场景1:已经上传了一个word文件,希望将该word文件转换成pdf文件后发起合同
|
|
2099
|
+
适用场景2:已经上传了一个jpg图片文件,希望将该图片文件转换成pdf文件后发起合同<br />
|
|
2100
|
+
转换文件是一个耗时操作,若想查看转换任务是否完成,可以通过<a href="https://qian.tencent.com/developers/partnerApis/files/DescribeFileConvertTask" target="_blank">查询转换任务状态</a>接口获取任务状态。<br />
|
|
2101
|
+
注:
|
|
2102
|
+
1. `支持的文件类型有doc、docx、xls、xlsx、html、jpg、jpeg、png、bmp、txt`
|
|
2103
|
+
2. `可通过发起合同时设置预览来检查转换文件是否达到预期效果`
|
|
2104
|
+
|
|
2105
|
+
:param request: Request instance for CreateFileConvertTask.
|
|
2106
|
+
:type request: :class:`tencentcloud.essbasic.v20210526.models.CreateFileConvertTaskRequest`
|
|
2107
|
+
:rtype: :class:`tencentcloud.essbasic.v20210526.models.CreateFileConvertTaskResponse`
|
|
2108
|
+
|
|
2109
|
+
"""
|
|
2110
|
+
try:
|
|
2111
|
+
params = request._serialize()
|
|
2112
|
+
headers = request.headers
|
|
2113
|
+
body = self.call("CreateFileConvertTask", params, headers=headers)
|
|
2114
|
+
response = json.loads(body)
|
|
2115
|
+
model = models.CreateFileConvertTaskResponse()
|
|
2116
|
+
model._deserialize(response["Response"])
|
|
2117
|
+
return model
|
|
2118
|
+
except Exception as e:
|
|
2119
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2120
|
+
raise
|
|
2121
|
+
else:
|
|
2122
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2123
|
+
|
|
2124
|
+
|
|
2092
2125
|
def CreateFlowBlockchainEvidenceUrl(self, request):
|
|
2093
2126
|
r"""获取区块链存证证书查看链接/二维码接口
|
|
2094
2127
|
|
|
@@ -2735,6 +2768,36 @@ class EssbasicClient(AbstractClient):
|
|
|
2735
2768
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2736
2769
|
|
|
2737
2770
|
|
|
2771
|
+
def DescribeFileConvertTask(self, request):
|
|
2772
|
+
r"""此接口(DescribeFileConvertTask)用来查询转换任务的状态。如需发起转换任务,请使用<a href="https://qian.tencent.com/developers/partnerApis/files/CreateFileConvertTask" target="_blank">创建文件转换任务接口</a>进行资源文件的转换操作<br />
|
|
2773
|
+
<font color="red">原功能接口: </font><a href="https://qian.tencent.com/developers/partnerApis/files/ChannelGetTaskResultApi" target="_blank">查询转换任务状态(ChannelGetTaskResultApi)</a><br />
|
|
2774
|
+
前提条件:已调用 <a href="https://qian.tencent.com/developers/partnerApis/files/CreateFileConvertTask" target="_blank">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />
|
|
2775
|
+
|
|
2776
|
+
适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源ID。<br />
|
|
2777
|
+
注:
|
|
2778
|
+
1. `大文件转换所需的时间可能会比较长。`
|
|
2779
|
+
2. `本接口返回的文件资源ID就是PDF资源ID,可以直接用于【用PDF文件创建签署流程】接口发起合同。`
|
|
2780
|
+
|
|
2781
|
+
:param request: Request instance for DescribeFileConvertTask.
|
|
2782
|
+
:type request: :class:`tencentcloud.essbasic.v20210526.models.DescribeFileConvertTaskRequest`
|
|
2783
|
+
:rtype: :class:`tencentcloud.essbasic.v20210526.models.DescribeFileConvertTaskResponse`
|
|
2784
|
+
|
|
2785
|
+
"""
|
|
2786
|
+
try:
|
|
2787
|
+
params = request._serialize()
|
|
2788
|
+
headers = request.headers
|
|
2789
|
+
body = self.call("DescribeFileConvertTask", params, headers=headers)
|
|
2790
|
+
response = json.loads(body)
|
|
2791
|
+
model = models.DescribeFileConvertTaskResponse()
|
|
2792
|
+
model._deserialize(response["Response"])
|
|
2793
|
+
return model
|
|
2794
|
+
except Exception as e:
|
|
2795
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2796
|
+
raise
|
|
2797
|
+
else:
|
|
2798
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2799
|
+
|
|
2800
|
+
|
|
2738
2801
|
def DescribeFlowDetailInfo(self, request):
|
|
2739
2802
|
r"""此接口用于查询合同或者合同组的详情信息,支持查询多个(数量不能超过100)。
|
|
2740
2803
|
|
|
@@ -314,6 +314,7 @@ class EssbasicClient(AbstractClient):
|
|
|
314
314
|
适用场景1:已经上传了一个word文件,希望将该word文件转换成pdf文件后发起合同
|
|
315
315
|
适用场景2:已经上传了一个jpg图片文件,希望将该图片文件转换成pdf文件后发起合同<br />
|
|
316
316
|
转换文件是一个耗时操作,若想查看转换任务是否完成,可以通过<a href="https://qian.tencent.com/developers/partnerApis/files/ChannelGetTaskResultApi" target="_blank">查询转换任务状态</a>接口获取任务状态。<br />
|
|
317
|
+
<font color="red">此接口于 2026 年 12月 31 日下线</font>,请使用新接口: <a href="https://qian.tencent.com/developers/partnerApis/files/CreateFileConvertTask" target="_blank">查询文件转换任务状态(CreateFileConvertTask)</a><br />
|
|
317
318
|
注:
|
|
318
319
|
1. `支持的文件类型有doc、docx、xls、xlsx、html、jpg、jpeg、png、bmp、txt`
|
|
319
320
|
2. `可通过发起合同时设置预览来检查转换文件是否达到预期效果`
|
|
@@ -1348,6 +1349,7 @@ class EssbasicClient(AbstractClient):
|
|
|
1348
1349
|
前提条件:已调用 <a href="https://qian.tencent.com/developers/partnerApis/files/ChannelCreateConvertTaskApi" target="_blank">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />
|
|
1349
1350
|
|
|
1350
1351
|
适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源ID。<br />
|
|
1352
|
+
<font color="red">此接口于 2026 年 12月 31 日下线</font>,请使用新接口: <a href="https://qian.tencent.com/developers/partnerApis/files/DescribeFileConvertTask" target="_blank">查询文件转换任务状态(DescribeFileConvertTask)</a><br />
|
|
1351
1353
|
注:
|
|
1352
1354
|
1. `大文件转换所需的时间可能会比较长。`
|
|
1353
1355
|
2. `本接口返回的文件资源ID就是PDF资源ID,可以直接用于【用PDF文件创建签署流程】接口发起合同。`
|
|
@@ -1788,6 +1790,32 @@ class EssbasicClient(AbstractClient):
|
|
|
1788
1790
|
|
|
1789
1791
|
return await self.call_and_deserialize(**kwargs)
|
|
1790
1792
|
|
|
1793
|
+
async def CreateFileConvertTask(
|
|
1794
|
+
self,
|
|
1795
|
+
request: models.CreateFileConvertTaskRequest,
|
|
1796
|
+
opts: Dict = None,
|
|
1797
|
+
) -> models.CreateFileConvertTaskResponse:
|
|
1798
|
+
"""
|
|
1799
|
+
此接口(CreateFileConvertTask)用来将word、excel、html、图片、txt类型文件转换为PDF文件。<br />
|
|
1800
|
+
<font color="red">原功能接口: </font><a href="https://qian.tencent.com/developers/partnerApis/files/ChannelCreateConvertTaskApi" target="_blank">创建文件转换服务(ChannelCreateConvertTaskApi)</a><br />
|
|
1801
|
+
前提条件:源文件已经通过 <a href="https://qian.tencent.com/developers/partnerApis/files/UploadFiles" target="_blank">文件上传接口</a>完成上传,并得到了源文件的资源Id。
|
|
1802
|
+
适用场景1:已经上传了一个word文件,希望将该word文件转换成pdf文件后发起合同
|
|
1803
|
+
适用场景2:已经上传了一个jpg图片文件,希望将该图片文件转换成pdf文件后发起合同<br />
|
|
1804
|
+
转换文件是一个耗时操作,若想查看转换任务是否完成,可以通过<a href="https://qian.tencent.com/developers/partnerApis/files/DescribeFileConvertTask" target="_blank">查询转换任务状态</a>接口获取任务状态。<br />
|
|
1805
|
+
注:
|
|
1806
|
+
1. `支持的文件类型有doc、docx、xls、xlsx、html、jpg、jpeg、png、bmp、txt`
|
|
1807
|
+
2. `可通过发起合同时设置预览来检查转换文件是否达到预期效果`
|
|
1808
|
+
"""
|
|
1809
|
+
|
|
1810
|
+
kwargs = {}
|
|
1811
|
+
kwargs["action"] = "CreateFileConvertTask"
|
|
1812
|
+
kwargs["params"] = request._serialize()
|
|
1813
|
+
kwargs["resp_cls"] = models.CreateFileConvertTaskResponse
|
|
1814
|
+
kwargs["headers"] = request.headers
|
|
1815
|
+
kwargs["opts"] = opts or {}
|
|
1816
|
+
|
|
1817
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1818
|
+
|
|
1791
1819
|
async def CreateFlowBlockchainEvidenceUrl(
|
|
1792
1820
|
self,
|
|
1793
1821
|
request: models.CreateFlowBlockchainEvidenceUrlRequest,
|
|
@@ -2334,6 +2362,31 @@ class EssbasicClient(AbstractClient):
|
|
|
2334
2362
|
|
|
2335
2363
|
return await self.call_and_deserialize(**kwargs)
|
|
2336
2364
|
|
|
2365
|
+
async def DescribeFileConvertTask(
|
|
2366
|
+
self,
|
|
2367
|
+
request: models.DescribeFileConvertTaskRequest,
|
|
2368
|
+
opts: Dict = None,
|
|
2369
|
+
) -> models.DescribeFileConvertTaskResponse:
|
|
2370
|
+
"""
|
|
2371
|
+
此接口(DescribeFileConvertTask)用来查询转换任务的状态。如需发起转换任务,请使用<a href="https://qian.tencent.com/developers/partnerApis/files/CreateFileConvertTask" target="_blank">创建文件转换任务接口</a>进行资源文件的转换操作<br />
|
|
2372
|
+
<font color="red">原功能接口: </font><a href="https://qian.tencent.com/developers/partnerApis/files/ChannelGetTaskResultApi" target="_blank">查询转换任务状态(ChannelGetTaskResultApi)</a><br />
|
|
2373
|
+
前提条件:已调用 <a href="https://qian.tencent.com/developers/partnerApis/files/CreateFileConvertTask" target="_blank">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />
|
|
2374
|
+
|
|
2375
|
+
适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源ID。<br />
|
|
2376
|
+
注:
|
|
2377
|
+
1. `大文件转换所需的时间可能会比较长。`
|
|
2378
|
+
2. `本接口返回的文件资源ID就是PDF资源ID,可以直接用于【用PDF文件创建签署流程】接口发起合同。`
|
|
2379
|
+
"""
|
|
2380
|
+
|
|
2381
|
+
kwargs = {}
|
|
2382
|
+
kwargs["action"] = "DescribeFileConvertTask"
|
|
2383
|
+
kwargs["params"] = request._serialize()
|
|
2384
|
+
kwargs["resp_cls"] = models.DescribeFileConvertTaskResponse
|
|
2385
|
+
kwargs["headers"] = request.headers
|
|
2386
|
+
kwargs["opts"] = opts or {}
|
|
2387
|
+
|
|
2388
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2389
|
+
|
|
2337
2390
|
async def DescribeFlowDetailInfo(
|
|
2338
2391
|
self,
|
|
2339
2392
|
request: models.DescribeFlowDetailInfoRequest,
|