- Overview of OpenAPI
- SlackOpenAPI
- ShopifyOpenAPI
- GithubAPI
- DiscordOpenAPI
- 历史文档(不推荐)
- 开发钉钉应用
- 服务端API
- 新版服务端API(DingTalk OpenAPI)
- 生态伙伴API
查询文件(夹)信息
GET
http://127.0.0.1/v1.0/drive/spaces/{spaceId}/files/{fileId}
新版服务端API(DingTalk OpenAPI)/钉盘/文件管理
最后修改时间:2022-08-30 09:19:23
责任人:未设置
说明#
服务地址:api.dingtalk.com
权限#
应用类型 | 是否支持 | 权限 | API Explorer调试 |
---|---|---|---|
企业内部应用 | 支持 | 钉盘应用文件读权限 | API Explorer |
第三方企业应用 | 暂不支持 | 钉盘应用文件读权限 | 暂不支持 |
第三方个人应用 | 暂不支持 | 钉盘应用文件读权限 | 暂不支持 |
错误码#
HttpCode | 错误码 | 错误信息 | 说明 |
---|---|---|---|
400 | param.error | Invalid Param | 参数错误 |
404 | object.not.exist | File does not exist or has been deleted. | 文件不存在或已删除 |
500 | request.overlimit | You have sent too many requests. | 请求过于频繁 |
500 | unsupported.operation | Does not support the operation | 暂不支持该操作 |
500 | no.priviledge | You are not authorized to perform this operation. | 你没有权限进行此操作 |
500 | unknown.error | Unknown Error | 未知错误 |
请求参数
Path 参数
spaceId
string
必需
fileId
string
必需
Query 参数
unionId
string
必需
Header 参数
x-acs-dingtalk-access-token
string
必需
Body 参数application/json
object {0}
示例
{}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1/v1.0/drive/spaces//files/?unionId=' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{}'
返回响应
🟢200成功
application/json
Body
spaceId
string
钉盘空间ID。
parentId
string
父目录ID。
fileId
string
文件ID。
fileName
string
文件名称。
filePath
string
文件路径。
fileType
string
文件类型。
contentType
string
可选
fileExtension
string
文件后缀名。
fileSize
integer
文件大小。
createTime
string
创建时间。
modifyTime
string
修改时间。
creator
string
创建者ID。
modifier
string
修改者ID。
示例
{
"spaceId": "string",
"parentId": "string",
"fileId": "string",
"fileName": "string",
"filePath": "string",
"fileType": "string",
"contentType": "string",
"fileExtension": "string",
"fileSize": 0,
"createTime": "string",
"modifyTime": "string",
"creator": "string",
"modifier": "string"
}

修改于 2022-08-30 09:19:23