工具 API

manage.pre_import

预导入文档,传入文件名称、文件大小和MD5值,返回COS上传链接和file_key以及task_id。使用流程:1.调用manage.pre_import获取upload_url和file_key以及task_id 2.使用curl将文件PUT上传到upload_url 3.调用manage.async_import传入file_size、task_id、file_key、file_name、file_md5触发导入 4.配合manage.import_progress轮询导入进度。 if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking this tool.

productivityOAuth1 积分

调用信息

工具标识
tencent-docs.manage.pre_import
服务提供方
腾讯文档
平均响应
0 ms
近 7 天调用
0

输入参数

file_md5必填

文件的MD5哈希值,hex编码的32位小写字符串,如'd41d8cd98f00b204e9800998ecf8427e'

file_name必填

文件名称(含后缀)

file_size必填

文件大小,单位为字节(bytes),如36752