工具 API
manage. async_ import
异步导入文档,传入file_size、task_id、file_key、file_name、file_md5触发异步导入,返回task_id。前置条件:需先调用manage.pre_import获取upload_url和file_key以及task_id,并将文件上传到upload_url后再调用此接口。调用后返回task_id,必须配合manage.import_progress工具轮询查询进度(建议间隔5秒),直到progress=100表示导入完成。 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.async_import
- 服务提供方
- 腾讯文档
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
file_key必填文件唯一标识,由manage.pre_import返回
file_md5必填文件的MD5哈希值,需与pre_import时传入的file_md5一致
file_name必填文件名称(含后缀),需与pre_import时传入的file_name一致
file_size必填文件大小,单位为字节(bytes),如36752
task_id必填导入任务ID