Skip to content

Commit d0c6053

Browse files
authored
Feature sse header (#123)
* update service * update interface of copy * update UPGRADE
1 parent 781c6ad commit d0c6053

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

UPGRADING.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,25 @@ cos-php-sdk-v5 Upgrade Guide
66
cos-php-sdk-v5 now uses [GuzzleHttp] for HTTP message.
77
Due to fact, it depending on PHP >= 5.6.
88

9-
- Use the `Qcloud\Cos\Client\createPresignedUrl()` method instead of the `Qcloud\Cos\Command\createPresignedUrl()`
9+
- Use the `Qcloud\Cos\Client\getPresignetUrl()` method instead of the `Qcloud\Cos\Command\createPresignedUrl()`
10+
11+
v2:
12+
```php
13+
$signedUrl = $cosClient->getPresignetUrl($method='putObject',
14+
$args=['Bucket'=>'examplebucket-1250000000', 'Key'=>'exampleobject', 'Body'=>''],
15+
$expires='+30 minutes');
16+
```
17+
18+
v1:
19+
```php
20+
$command = $cosClient->getCommand('putObject', array(
21+
'Bucket' => "examplebucket-1250000000",
22+
'Key' => "exampleobject",
23+
'Body' => '',
24+
));
25+
$signedUrl = $command->createPresignedUrl('+30 minutes');
26+
```
27+
1028
- `$copSource` parameters of the `Qcloud\Cos\Client\Copy` interface are no longer compatible with older versions.
1129

1230
v2:

0 commit comments

Comments
 (0)