tencent cloud

Smart Media Hosting

Product Introduction
Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
Purchase Guide
Quick Start
Create Media Library
Initiate request
Service Level API Document
History
Introduction
API Category
Making API Requests
PaaS Service APIs
Official Cloud Disk APIs
Data Types
Error Codes
Business Level API Document
Introduction
Access Token Operation API
Tenant Space Operation API
File Operation API
Directory or Album Operation API
Recycle Bin Operation API
Quota Operation API
Query Task Operation API
Search Operation API
Historical Version Operations API
Directory and File Batch Operation API
Collection Operation API
Error Codes
SDK Documentation
Android SDK
iOS SDK
HarmonyOS SDK
FAQs
Enterprise Network Disk
Product Introduction
Purchase Guide
Quick Start
FAQs
Service Level Agreement
Glossary

Recycle Bin List

PDF
フォーカスモード
フォントサイズ
最終更新日: 2026-01-07 10:49:11

Introduction

This document provides an API overview about listing recycle bin items and SDK sample code.
API
Operation Description
List Recycle Bin Items

SDK API Reference

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

Listing Recycle Bin Projects

Feature Description

List Recycle Bin Items.

Sample Code

Listing Recycle Bin

QCloudSMHGetRecycleObjectListReqeust *req = [QCloudSMHGetRecycleObjectListReqeust new];
// Media Library ID, required parameter
req.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 parameter
req.spaceId = @"spaceId";
// Pagination code, default page 1, optional parameter;
req.page = 0;
// Page size, default 20, optional parameter;
req.pageSize = 10;
// Sort by name is QCloudSMHSortTypeName,
// Sort by modification time is QCloudSMHSortTypeMTime,
// Sort by file size is QCloudSMHSortTypeSize,
// Sort by deletion time is QCloudSMHSortTypeRemovalTime,
// Sort by remaining time is QCloudSMHSortTypeRemainingTime;
req.sortType = sortType;
// Pagination direction, pass next when requesting the next page, pass prev when requesting the previous page;
req.isNext = YES;
[req setFinishBlock:^(QCloudSMHRecycleObjectListInfo *_Nullable result, NSError *_Nullable error) {

}];
[[QCloudSMHService defaultSMHService] getRecycleList:req];

Listing Via marker and limit

QCloudSMHGetRecycleObjectListReqeust *req = [QCloudSMHGetRecycleObjectListReqeust new];
// 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;
// User identity recognition, be used to temporarily specify user identity when the access token has admin permission and the user identity recognition during token application is empty. For details, see Generate Access Token API.
req.userId = self.userModel.userId;
// Limit the entry number in the response body, if not specified, default to 1000;
req.limit = limit;
// Pagination tag, when pagination is needed, the response body will return the value used for this parameter in the next request. When requesting the first page, no need to specify this parameter.
req.marker = marker;
// Sorting field,
// Sort by name is QCloudSMHSortTypeName,
// Sort by modification time is QCloudSMHSortTypeMTime,
// Sort by file size is QCloudSMHSortTypeSize,
// Sort by deletion time is QCloudSMHSortTypeRemovalTime,
// Sort by remaining time is QCloudSMHSortTypeRemainingTime;
req.sortType = sortType;
// Pagination direction, pass next when requesting the next page, pass prev when requesting the previous page;
req.isNext = YES;
[req setFinishBlock:^(QCloudSMHRecycleObjectListInfo *_Nullable result, NSError *_Nullable error) {

}];
[[QCloudSMHService defaultSMHService] getRecycleList:req];


ヘルプとサポート

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

フィードバック