Understand the difference between COS Java SDK v5 and v4
masterChoosing the correct SDK depends on the API type you intend to use:
- cos-java-sdk-v5: Use this for the COS XML API.
- cos-java-sdk-v4: Use this for the COS JSON API.
repository·master·Indexed 41 days ago
https://github.com/tencentyun/cos-java-sdk-v5A Java SDK for interacting with Tencent Cloud Object Storage (COS) via its XML API. Version 5.6.246 is available via Maven under the com.qcloud:cos_api artifact.
Choosing the correct SDK depends on the API type you intend to use:
To use the COS XML API in your Java project, add the following dependency to your pom.xml file. Note that this SDK is specifically designed for the COS XML API; if you require the JSON API, you should use cos-java-sdk-v4 instead.
<dependency>
<groupId>com.qcloud</groupId>
<artifactId>cos_api</artifactId>
<version>5.6.246</version>
</dependency>Concrete implementation examples and demo code for the SDK can be found in the project's source tree under the com.qcloud.cos.demo package.
https://github.com/tencentyun/cos-java-sdk-v5/blob/master/src/main/java/com/qcloud/cos/demo