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 11:03:10

Introduction

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

Listing Recycle Bin Projects

Feature Overview

List Recycle Bin Items.

Example Code

List Recycle Bin Items
try {
val recycledContents: RecycledContents = smh.listRecycled(
//page number
page = 1,
//number of items per page
pageSize = 100,
sorting method
orderType = OrderType.NAME,
sorting order
orderDirection = OrderDirection.ASC
)
//Recycle bin list. Check the RecycledContents entity for other numbers etc.
val contents = recycledContents.contents
} catch (e: Exception) {
e.printStackTrace()
}
List via marker + limit
try {
val recycledContents: RecycledContents = smh.listRecycledWithMarker(
//ID for sequential page listing
marker = 100,
//Limit for local project count in sequential page listing
limit = 100,
//ETag of current directory
eTag = "eTag",
sorting method
orderType = OrderType.NAME,
sorting order
orderDirection = OrderDirection.ASC
)
//Recycle bin list. Check the RecycledContents entity for other numbers etc.
val contents = recycledContents.contents
} catch (e: Exception) {
e.printStackTrace()
}


도움말 및 지원

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

피드백