调用 GetVideoLibraryFolderTree
接口,获取当前账号下默认分类或指定分类及其子分类的信息。
说明
使用子账号调用接口时,仅支持获取该子账号可见的视频库分类。有关如何配置子账号的可见范围,详见子账号管理。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetVideoLibraryFolderTree | 接口名称。当前 API 的名称为 GetVideoLibraryFolderTree 。 |
Version | String | 是 | 2023-08-01 | 接口版本。当前 API 的版本为 2023-08-01 。 |
FolderId | Long | 否 | 0 | 分类 ID。默认值为 0 ,表示查询默认分类下的所有子分类。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
FolderNode | Object of FolderNode | - | 分类信息。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
FolderId | Long | 0 | 分类 ID。 |
FolderName | String | 默认分类 | 分类名称。 |
Children | Array of FolderNode | - | 子分类信息。 |
FolderTypeForSubAccount | Integer |
| 调用接口的子账号对分类的操作权限。取值如下:
说明 使用主账号调用接口时,该参数取值固定为 |
GET https://livesaas.volcengineapi.com/?Action=GetVideoLibraryFolderTree&Version=2023-08-01&FolderId=0
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "GetVideoLibraryFolderTree", "Version": "2023-08-01", "Service": "livesaas", "Region": "cn-north-1", "SystemTime": 1697446406 }, "Result": { "FolderNode": { "FolderId": 0, "FolderName": "默认分类", "Children": [ { "FolderId": 17959466895819, "FolderName": "子分类名称1", "Children": [ { "FolderId": 17959465298105, "FolderName": "子分类名称2", "Children": [] } ] } ], "FolderTypeForSubAccount": 0 } } }