All Products
Search
Document Center

ApsaraVideo VOD:Media asset categories

Last Updated:Aug 22, 2023

This topic describes how to create, delete, update, and query a media asset category by calling API operations. The API operations are encapsulated in ApsaraVideo VOD SDK for Java.

Usage notes

  • For more information about the request and response parameters of API operations, visit OpenAPI Explorer and find the documentation of the API operation in the left-side navigation pane.

  • To obtain sample code of the SDK, visit OpenAPI Explorer. On the OpenAPI Explorer page, specify the request parameters on the Parameters tab and initiate a call. Then, view and download the sample code in a specific language on the SDK Sample Code tab.

Initialize a client

Before you use the SDK, initialize a client. For more information, see Initialization.

Create a category

You can call the AddCategory operation to create a category.

Click AddCategory to learn more about this API operation.

Update a category

You can call the UpdateCategory operation to update a category.

Click UpdateCategory to learn more about this API operation.

Delete a category

You can call the DeleteCategory operation to delete a category.

Click DeleteCategory to learn more about this API operation.

Query a category and its subcategories

You can call the GetCategories operation to query a category and its subcategories.

Click GetCategories to learn more about this API operation.