tencent cloud

Smart Media Hosting

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