You can use either of the following methods to initialize a DIS SDK client instance: For details about endpoint, ak, sk, region, and projectId, see Obtaining Authentication Information.
//Create a DIS client instance. DIS dic = DISClientBuilder.standard() .withEndpoint("https://ip:port") .withAk("xxxx") .withSk("xxxx") .withProjectId("xxxxxxx") .withRegion("xxxx") .build();
Add the following configuration items to the dis.propertites file in the dis-sdk-demo\resources directory:
//Create a DIS client instance. DIS dic = DISClientBuilder.standard().build();