| 程序包 | 说明 |
|---|---|
| com.lark.oapi.service.im.v1 | |
| com.lark.oapi.service.im.v1.model |
| 限定符和类型 | 方法和说明 |
|---|---|
GetFileResp |
ImService.File.get(GetFileReq req)
下载文件,下载文件接口,只能下载应用自己上传的文件
注意事项:;- 需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 只能下载机器人自己上传的文件;- 下载用户发送的资源,请使用[获取消息中的资源文件](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message-resource/get)接口 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/file/get ;
使用Demo链接: https://github.com/larksuite/oapi-sdk-java/tree/v2_main/sample/src/main/java/com/lark/oapi/sample/apiall/imv1/GetFileSample.java ;
|
GetFileResp |
ImService.File.get(GetFileReq req,
RequestOptions reqOptions)
下载文件,下载文件接口,只能下载应用自己上传的文件
注意事项:;- 需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 只能下载机器人自己上传的文件;- 下载用户发送的资源,请使用[获取消息中的资源文件](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message-resource/get)接口 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/file/get ;
使用Demo链接: https://github.com/larksuite/oapi-sdk-java/tree/v2_main/sample/src/main/java/com/lark/oapi/sample/apiall/imv1/GetFileSample.java ;
|
| 限定符和类型 | 方法和说明 |
|---|---|
GetFileReq |
GetFileReq.Builder.build() |
Copyright © 2022. All rights reserved.