Currently, Alibaba Cloud provides SDKs in four languages: Java, Python, PHP, and C#. The following links provide the download, installation, and usage guide for each language:

If you want SDKs in other languages, select a third-party SDK service.

Quick start


The following example describes how to install and use the Java SDK:

  1. On the Alibaba Cloud official website, create and manage your AccessKey.
  2. Install the SDK by using Maven.
    1. Add the Maven library.
               name>Sonatype Nexus Staging</name>
    2. Add the JAR package dependency.
    3. Sample code. The following example submits bulk domain name registration tasks:
      import java.util.ArrayList;
      import com.aliyuncs.DefaultAcsClient;
      import com.aliyuncs.IAcsClient;
      import com.aliyuncs.domain_intl.model.v20171218. SaveBatchTaskForCreatingOrderActivateRequest;
      import com.aliyuncs.domain_intl.model.v20171218. SaveBatchTaskForCreatingOrderActivateRequest.OrderActivateParam;
      import com.aliyuncs.domain_intl.model.v20171218. SaveBatchTaskForCreatingOrderActivateResponse;
      import com.aliyuncs.exceptions.ClientException;
      import com.aliyuncs.exceptions.ServerException;
      import com.aliyuncs.profile.DefaultProfile;
      import com.aliyuncs.profile.IClientProfile;
      public class DomainSdkDemo {
          private static IAcsClient client = null;
          //Initialize the client.
          static {
              String regionId = "ap-southeast-1"; //Use the region value such as "ap-southeast-1" for the domain name SDK.
              String accessKeyId = ""; // your accessKey
              String accessKeySecret = "";// your accessSecret
              IClientProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
              // If the error message "Can not find endpoint to access" is returned, add the following code:
              // DefaultProfile.addEndpoint("ap-southeast-1", "ap-southeast-1", "Domain-intl", "");
              client = new DefaultAcsClient(profile);
          public static void main(String[] args) {
              //Initialize the request.
              SaveBatchTaskForCreatingOrderActivateRequest request = new SaveBatchTaskForCreatingOrderActivateRequest();
              // request.setProtocol(ProtocolType.HTTPS); //Specify the access protocol.
              // request.setAcceptFormat(FormatType.JSON); //Specify the return format of the API.
              // request.setMethod(MethodType.POST); //Specify the request method.
              ArrayList<OrderActivateParam> list = new ArrayList<OrderActivateParam>();
              OrderActivateParam orderActivateParam = new OrderActivateParam();
              //Call the API and resolve the result.
              try {
                  //IAcsClient provides two types of result returning. One is to call the doAction method to obtain the original API call result, that is, return the result of the HttpResponse type. The sample code is as follows:
                  //HttpResponse httpResponse = client.doAction(describeCdnServiceRequest);
                  //System.out.println(new String(httpResponse.getContent()));
                  //Another is to call the getAcsResponse method to obtain the deserialized object. The sample code is as follows:
                  SaveBatchTaskForCreatingOrderActivateResponse response = client.getAcsResponse(request);
              } catch (ServerException e) {
              } catch (ClientException e) {