use of com.qcloud.cos.COSClient in project cos-java-sdk-v5 by tencentyun.
the class WatermarkTemplateDemo method main.
public static void main(String[] args) throws Exception {
// 1 初始化用户身份信息(secretId, secretKey)。
COSClient client = ClientUtils.getTestClient();
// 2 调用要使用的方法。
describeMediaTemplates(client);
}
use of com.qcloud.cos.COSClient in project cos-java-sdk-v5 by tencentyun.
the class WebpageAuditingJobDemo method main.
public static void main(String[] args) throws InterruptedException {
// 1 初始化用户身份信息(secretId, secretKey)。
COSClient client = ClientUtils.getTestClient();
// 2 调用要使用的方法。
describeWebpageAuditingJob(client);
}
use of com.qcloud.cos.COSClient in project cos-java-sdk-v5 by tencentyun.
the class WorkFlowDemo method main.
public static void main(String[] args) {
// 1 初始化用户身份信息(secretId, secretKey)。
COSClient client = ClientUtils.getTestClient();
// 2 调用要使用的方法。
describeWorkflow(client);
}
use of com.qcloud.cos.COSClient in project cos-java-sdk-v5 by tencentyun.
the class GetAsyncFetchTaskDemo method createCosClient.
public static COSClient createCosClient() {
COSCredentials cred = new BasicCOSCredentials(ak, sk);
ClientConfig clientConfig = new ClientConfig(new Region(region));
clientConfig.setHttpProtocol(HttpProtocol.http);
return new COSClient(cred, clientConfig);
}
use of com.qcloud.cos.COSClient in project oss-spring-boot-starter by ArtIsLong.
the class TencentOssConfiguration method tencentOssClient.
private StandardOssClient tencentOssClient(TencentOssConfig tencentOssConfig) {
Region region = region(tencentOssConfig);
ClientConfig clientConfig = config(region);
COSCredentials cosCredentials = cosCredentials(tencentOssConfig);
COSClient cosClient = cosClient(cosCredentials, clientConfig);
return tencentOssClient(cosClient, tencentOssConfig);
}
Aggregations