tencent cloud

Smart Media Hosting

Retrieve Album Cover

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-07 10:49:10

Introduction

This document provides an overview of APIs and SDK example codes for viewing directories or albums.
API
Operation Description
Get album cover

SDK API Reference

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

Retrieving Album Cover URL

Feature Description

To obtain the album cover link.

Sample Code

QCloudSMHGetAlbumRequest * request = [QCloudSMHGetAlbumRequest new];
// Scale size, optional parameter, see API description for notes.
request.size = @"100";
// Media Library ID, required parameter
req.libraryId = self.userModel.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 = scopeDir.teamInfo.spaceId;
[request setFinishBlock:^(id _Nullable outputObject, NSError * _Nullable error) {
[expectation fulfill];
}];
[[QCloudSMHService defaultSMHService] getAlbum:request];


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백