public class Attachment extends Object
| 构造器和说明 |
|---|
Attachment(Config config) |
| 限定符和类型 | 方法和说明 |
|---|---|
DeleteAttachmentResp |
delete(DeleteAttachmentReq req)
删除附件,提供一个附件GUID,删除该附件。
|
DeleteAttachmentResp |
delete(DeleteAttachmentReq req,
RequestOptions reqOptions)
删除附件,提供一个附件GUID,删除该附件。
|
GetAttachmentResp |
get(GetAttachmentReq req)
获取附件,提供一个附件GUID,返回附件的详细信息,包括GUID,名称,大小,上传时间,临时可下载链接等。
|
GetAttachmentResp |
get(GetAttachmentReq req,
RequestOptions reqOptions)
获取附件,提供一个附件GUID,返回附件的详细信息,包括GUID,名称,大小,上传时间,临时可下载链接等。
|
ListAttachmentResp |
list(ListAttachmentReq req)
列取附件,列取一个资源的所有附件。
|
ListAttachmentResp |
list(ListAttachmentReq req,
RequestOptions reqOptions)
列取附件,列取一个资源的所有附件。
|
UploadAttachmentResp |
upload(UploadAttachmentReq req)
上传附件,为特定资源上传附件。
|
UploadAttachmentResp |
upload(UploadAttachmentReq req,
RequestOptions reqOptions)
上传附件,为特定资源上传附件。
|
public Attachment(Config config)
public DeleteAttachmentResp delete(DeleteAttachmentReq req, RequestOptions reqOptions) throws Exception
删除附件调用身份需要拥有被删除附件所属资源的的编辑权限,或者调用身份就是附件的上传人。 ;
Exceptionpublic DeleteAttachmentResp delete(DeleteAttachmentReq req) throws Exception
删除附件调用身份需要拥有被删除附件所属资源的的编辑权限,或者调用身份就是附件的上传人。 ;
Exceptionpublic GetAttachmentResp get(GetAttachmentReq req, RequestOptions reqOptions) throws Exception
获取附件需要附件归属资源的可读取权限。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=task&resource=attachment&version=v2 ;
Exceptionpublic GetAttachmentResp get(GetAttachmentReq req) throws Exception
获取附件需要附件归属资源的可读取权限。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=task&resource=attachment&version=v2 ;
Exceptionpublic ListAttachmentResp list(ListAttachmentReq req, RequestOptions reqOptions) throws Exception
获取任务的附件列表,需要该任务的读取权限。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=task&resource=attachment&version=v2 ;
Exceptionpublic ListAttachmentResp list(ListAttachmentReq req) throws Exception
获取任务的附件列表,需要该任务的读取权限。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=task&resource=attachment&version=v2 ;
Exceptionpublic UploadAttachmentResp upload(UploadAttachmentReq req, RequestOptions reqOptions) throws Exception
为任务上传附件需要任务的可编辑权限 ;
Exceptionpublic UploadAttachmentResp upload(UploadAttachmentReq req) throws Exception
为任务上传附件需要任务的可编辑权限 ;
ExceptionCopyright © 2026. All rights reserved.