All Products
Search
Document Center

Alibaba Cloud SDK:Configure a dependency

Last Updated:Jan 05, 2023

Configure the Darabonba SDK of an Alibaba Cloud service as a dependency

The Classic SDK has a large number of users, and the Darabonba SDK is not compatible with the Classic SDK. The naming conventions for the Darabonba SDK and the Classic SDK are different. The following code provides an example on how to configure the Darabonba SDK of Elastic Compute Service (ECS) as a Maven dependency:

composer require alibabacloud/ecs-20140526

The Darabonba SDK of each Alibaba Cloud service is named in the alibabacloud/${Service name}-${API version number} format. If you want to view the information about the Darabonba SDK or the Classic SDK of each Alibaba Cloud service, visit SDK Center.

Make API requests without referencing the core library

The Darabonba SDK uses the main API-based logic to process parameters, send requests, and process return values. You do not need to make API requests based on the core library. In the Darabonba SDK, functions are abstracted from common methods and are encapsulated into modules. You can make API requests by installing only the SDK of an Alibaba Cloud service as a dependency. You can run the following commands to download the latest modules:

composer require alibabacloud/darabonba-openapi