Skip to content

Commit

Permalink
Merge pull request #515 from qiniu/ys_dev
Browse files Browse the repository at this point in the history
发布v7.5.0版本
  • Loading branch information
Mei-Zhao authored Apr 15, 2021
2 parents 92c1c8a + 7c08a1e commit fae4ce3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 7.5.0 (2021-04-15)

## 增加
* 新增上传服务基础 api
* 新增分片上传 v2 功能


## 7.4.0 (2020-11-25)

## 增加
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<dependency>
<groupId>com.qiniu</groupId>
<artifactId>qiniu-java-sdk</artifactId>
<version>[7.4.0, 7.4.99]</version>
<version>[7.5.0, 7.5.99]</version>
</dependency>
```
或者 Gradle:
```groovy
compile 'com.qiniu:qiniu-java-sdk:7.4.+'
compile 'com.qiniu:qiniu-java-sdk:7.5.+'
```

## 运行环境
Expand All @@ -33,11 +33,20 @@ import com.qiniu.util.Auth;
import com.qiniu.storage.Configuration;
import com.qiniu.http.Response;
...
// 分片上传 v1
Configuration cfg = new Configuration();
UploadManager uploadManager = new UploadManager(cfg);
Auth auth = Auth.create(accessKey, secretKey);
String token = auth.uploadToken(bucketName);
Response r = upManager.put("hello world".getBytes(), "yourkey", token);

// 分片上传 v2
Configuration cfg = new Configuration();
cfg.resumableUploadAPIVersion = Configuration.ResumableUploadAPIVersion.V2;
UploadManager uploadManager = new UploadManager(cfg);
Auth auth = Auth.create(accessKey, secretKey);
String token = auth.uploadToken(bucketName);
Response r = upManager.put("hello world".getBytes(), "yourkey", token);
...
```

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/qiniu/common/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public final class Constants {
/**
* 版本号
*/
public static final String VERSION = "7.4.0";
public static final String VERSION = "7.5.0";
/**
* 块大小,不能改变
*/
Expand Down

0 comments on commit fae4ce3

Please sign in to comment.