获取文件夹列表
POST
/api/folder/list
请求参数
Header 参数
sk
string
必需
Body 参数application/x-www-form-urlencoded
folderName
string
文件夹名称
folderParent
string
父文件夹id
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://pan.imgbed.link/api/folder/list' \
--header 'sk;'
返回响应
🟢200成功
application/json
Body
msg
string
必需
code
integer
必需
data
array [object {5}]
必需
folderId
string
文件夹id
folderName
string
文件夹名称
folderCreationDate
string
创建时间
folderCreator
string
创建人
folderParent
string
上级文件夹id
示例
{
"msg": "操作成功",
"code": 0,
"data": [
{
"folderId": "9adbbe42-4ad4f-498c-832f-5faa8ec5e47b",
"folderName": "2023",
"folderCreationDate": "2023年07月22日",
"folderCreator": "admin",
"folderParent": "418631e4-5b9d-4247-49909-ef24f609b1b6"
},
{
"folderId": "root",
"folderName": "ROOT",
"folderCreationDate": "--",
"folderCreator": "--",
"folderParent": "null"
},
{
"folderId": "418631e4-5b9d-444247-9909-ef24f609b1b6",
"folderName": "admin",
"folderCreationDate": "2023年07月21日",
"folderCreator": "admin",
"folderParent": "root"
},
{
"folderId": "e1f5f0a9eee049457a287cba9b75b25ba",
"folderName": "测试",
"folderCreationDate": "2023年07月27日 19:09:11",
"folderCreator": "admin",
"folderParent": "root"
}
]
}
修改于 2023-07-27 11:29:23