File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,25 @@ cos-php-sdk-v5 Upgrade Guide
66cos-php-sdk-v5 now uses [ GuzzleHttp] for HTTP message.
77Due 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
1230v2:
You can’t perform that action at this time.
0 commit comments