tencent cloud

Smart Media Hosting

Getting File Information

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-07 10:49:07

Introduction

This document provides an API overview and SDK example code for getting file information.
API
Operation Description
Get file download link and info

SDK API Reference

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

Getting File Information

Feature Description

Get file information.

Sample Code

QCloudSMHGetDownloadInfoRequest * requeset = [[QCloudSMHGetDownloadInfoRequest alloc]init];
// The organizational affiliation id of the space. This field only requires filling in when accessing a public group.
// 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.
requeset.spaceId = @"spaceId";
// Media Library ID, required parameter
requeset.libraryId = @"libraryId";
// version id
requeset.historyId = @"historVersionId";
// file path
requeset.filePath = @"filePath";
[requeset setFinishBlock:^(QCloudSMHDownloadInfoModel * outputObject, NSError * _Nullable error) {

}];
[[QCloudSMHService defaultSMHService] getDonwloadInfo:requeset];


Ajuda e Suporte

Esta página foi útil?

comentários