tencent cloud

Smart Media Hosting

Retrieve Album Cover

PDF
フォーカスモード
フォントサイズ
最終更新日: 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];


ヘルプとサポート

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

フィードバック