list_shared_subfolder_content
const url = 'https://example.com/api/v1/s/example/folders/1/content';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}use reqwest;
#[tokio::main]pub async fn main() { let url = "https://example.com/api/v1/s/example/folders/1/content";
let client = reqwest::Client::new(); let response = client.get(url) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request GET \ --url https://example.com/api/v1/s/example/folders/1/contentParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Share token
Subfolder ID inside shared folder
Query Parameters
Section titled “Query Parameters”文件夹最大返回数量(默认 200,最大 1000;传 0 跳过文件夹查询)
文件夹偏移量(默认 0)
文件最大返回数量(默认 100,最大 1000;传 0 跳过文件查询)
Cursor 分页:上一页最后一条文件的排序字段值(序列化为字符串)
Cursor 分页:上一页最后一条文件的 id
Responses
Section titled “Responses”Subfolder contents
统一 API 响应格式
成功: { "code": "success", "msg": "", "data": {...} }
失败: { "code": "auth.credentials_failed", "msg": "Invalid Credentials" }
object
object
object
Lowercase multi-part extension without a leading dot, such as tar.gz.
Populated only when the file name ends with a supported compound extension.
Lowercase final extension without a leading dot. Empty when the file name has no extension.
Category derived from the extension first, then MIME type as fallback.
object
object
Compatibility mode for locks covering the same resource hierarchy.
object
object
object
object
Compatibility mode for locks covering the same resource hierarchy.
object
object
object
Connector-owned field that caused a configuration validation failure.
This is intentionally optional so existing diagnostics remain wire-compatible.
Connector field scope, for example connector_config or static_credential.
Example
{ "code": "success", "data": { "files": [ { "file_category": "image", "lock_state": { "state": "unlocked" } } ], "folders": [ { "icon": { "kind": "default" }, "lock_state": { "state": "unlocked" } } ] }}Password required or folder outside shared scope
Share or folder not found