Skip to content

Commit d4f5553

Browse files
committed
pre release v2.3.0
1 parent b73afff commit d4f5553

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.travis.yml export-ignore
4+
/phpunit.xml export-ignore
5+
/src/Qcloud/Cos/Tests export-ignore

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
cos-php-sdk-v5 Upgrade Guide
22
====================
3+
2.2.3 to 2.3.0
4+
---------
5+
- 新增图片审核,视频审核,音频审核,文本审核,文档审核接口
6+
- 新增单链接限速demo
7+
- 暴露getPresigned接口Headers和Params参数接口
8+
- 补充textDetect UT
9+
- 修复stream_for废弃问题
10+
- 修复x-cos头检测逻辑问题
11+
- 修复UT部分bug
312

413
2.2.2 to 2.2.3
514
- 在putObejct中新增x-cos-tagging头

sample/getPresignedUrl.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
66
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
8+
89
$cosClient = new Qcloud\Cos\Client(
910
array(
1011
'region' => $region,
@@ -15,7 +16,7 @@
1516
$local_path = "/data/exampleobject";
1617
try {
1718
$signedUrl = $cosClient->getPresignedUrl(
18-
$method='putObject',
19+
$method='getObject',
1920
$args=array(
2021
'Bucket'=>'examplebucket-1250000000', //格式:BucketName-APPID
2122
'Key'=>'exampleobject',

0 commit comments

Comments
 (0)