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
Modo Foco
Tamanho da Fonte
Última atualização: 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()
}


Ajuda e Suporte

Esta página foi útil?

comentários