Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
API | Operation Description |
List directory or album content |
QCloudSMHListContentsRequest *req = [QCloudSMHListContentsRequest new];// Media Library ID, required parameterreq.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 parameterreq.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];
// target folderQCloudSMHListContentsRequest *req = [QCloudSMHListContentsRequest new];// Media Library ID, required parameterreq.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 parameterreq.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];
フィードバック