tencent cloud

Smart Media Hosting

Retrieve Album Cover

下载
聚焦模式
字号
最后更新时间: 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];


帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈