Media asset categories
Categorize media assets such as audio, videos, and images for efficient retrieval and management. Includes Java SDK examples for creating and managing categories.
Usage notes
-
For details on API parameters and response fields, visit Alibaba Cloud OpenAPI Explorer and view the Documentation tab for each API.
-
You can get SDK sample code from Alibaba Cloud OpenAPI Explorer. On the Parameters tab, configure the required parameters and make a call. Then, on the SDK Sample Code tab, select the SDK version and programming language to view and download the code. For more information, see Automatic generation of SDK examples. In Alibaba Cloud OpenAPI Explorer, in addition to the Documentation tab, each API provides the following tabs: SDK Sample Code, CLI Example, Call Result, Call History, and Error Code. On the SDK Sample Code tab, you can select an SDK version (V2.0 recommended/V1.0) and a programming language, such as Java, TypeScript, Go, PHP, Python, C#, C++, or Swift, to view and run the corresponding sample code. In the parameters section on the left, you can configure request parameters, such as
CoverURL.
Initialize a client
Before using the SDK, initialize a client. Initialization.
Create a category
Call the AddCategory operation to create a category.
Alibaba Cloud OpenAPI Portal: AddCategory.
Update a category
Call the UpdateCategory operation to update a category.
Alibaba Cloud OpenAPI Portal: UpdateCategory.
Delete a category
Call the DeleteCategory operation to delete a category.
Alibaba Cloud OpenAPI Portal: DeleteCategory.
Query a category and its subcategories
Call the GetCategories operation to query a category and its subcategories.
Alibaba Cloud OpenAPI Portal: GetCategories.