tencent cloud

Smart Media Hosting

Product Introduction
Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
Purchase Guide
Quick Start
Create Media Library
Initiate request
Service Level API Document
History
Introduction
API Category
Making API Requests
PaaS Service APIs
Official Cloud Disk APIs
Data Types
Error Codes
Business Level API Document
Introduction
Access Token Operation API
Tenant Space Operation API
File Operation API
Directory or Album Operation API
Recycle Bin Operation API
Quota Operation API
Query Task Operation API
Search Operation API
Historical Version Operations API
Directory and File Batch Operation API
Collection Operation API
Error Codes
SDK Documentation
Android SDK
iOS SDK
HarmonyOS SDK
FAQs
Enterprise Network Disk
Product Introduction
Purchase Guide
Quick Start
FAQs
Service Level Agreement
Glossary

Listing Content

PDF
フォーカスモード
フォントサイズ
最終更新日: 2026-01-07 10:49:08

Introduction

This document provides an API overview for listing directory or album content and SDK sample code.
API
Operation Description
List directory or album content

SDK API Reference

For specific parameters and method descriptions of all SDK APIs, please see SDK API Reference.

Listing Directory or Album

Feature Description

List directory or album content.

Sample Code

List File List

QCloudSMHListContentsRequest *req = [QCloudSMHListContentsRequest new];
// Media Library ID, required parameter
req.libraryId = @"libraryId";
// Space ID, if the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameter
req.spaceId = @"spaceId";
req.dirPath = @"/";
req.page = 0;
req.pageSize = 10;
req.requestSerializer.cachePolicy = NSURLRequestReloadIgnoringCacheData;
[req setFinishBlock:^(QCloudSMHContentListInfo *_Nullable result, NSError *_Nullable error) {

}];
[[QCloudSMHService defaultSMHService] listContents:req];

Listing File List Via marker and limit

// target folder
QCloudSMHListContentsRequest *req = [QCloudSMHListContentsRequest new];
// Media Library ID, required parameter
req.libraryId = @"libraryId";
// Space ID, if the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameter
req.spaceId = @"spaceId";
req.dirPath = @"/";
// Limit the number of entries in the response body, default to 1000 if not specified;
req.limit = 0;
// Pagination tag. When pagination is needed, the response body will return the value used for this parameter in the next request. No need to specify this parameter when requesting the first page.
req.marker = @"marker";
req.requestSerializer.cachePolicy = NSURLRequestReloadIgnoringCacheData;
[req setFinishBlock:^(QCloudSMHContentListInfo *_Nullable result, NSError *_Nullable error) {

}];
[[QCloudSMHService defaultSMHService] listContents:req];


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック