2.2.2 to 2.2.3
GetObjectWithoutSignbug新增appendObject SDK,包括sample,service,test 增加无签名对象下载地址 SDK,包括sample,service,test 增加全球加速相关配置参数 将COS_SECRETID修改为SECRETID、COS_SECRETKEY修改为SECRETKEY,防止混淆 修复部分逻辑代码bug 修复部分拼写错误
AppendObject interfaceGetObjectWithoutSign interfaceallow_accelerate param to clientCOS_SECRETID->SECRETID COS_SECRETKEY->SECRETKEYgetPresigned interfacePutObjectTagging interfaceGetObjectTagging interfaceDeleteObjectTagging interfacePutObject interface supports ci image processGetObject interface supports ci image processImageInfo interface, which is used for get image infoImageExif interface, which is used for get image exifImageAve interface, which is used for get image aveImageProcess interface, which is used for data processing on cloudQrcode interface, which is used for qrcode recognitionQrcodeGenerate interface, which is used for generate qrcodeDetectLabel interface, which is used for detect image labelPutBucketImageStyle interface, which is used for add bucket image styleGetBucketImageStyle interface, which is used for get bucket image styleDeleteBucketImageStyle interface, which is used for delete bucket image stylePutBucketGuetzli interface, which is used for open bucket guetzli stateGetBucketGuetzli interface, which is used for get bucket guetzli stateDeleteBucketGuetzli interface, which is used for close bucket guetzli stateallow_redirects parameterselectObjectContent interfacedownload interface supports breakpointgetPresignetUrl to getPresignedUrldownload interface, which is used for concurrent block downloadupload and download progressListBucketInventoryConfigurationsupload support upload with multithreadretry params for interface retrylistBuckets with doaminlistObjectVersionsgetObject with param of saveasListPartsputObject with fopencos-php-sdk-v5 now uses [GuzzleHttp] for HTTP message. Due to fact, it depending on PHP >= 5.6.
Qcloud\Cos\Client\getPresignetUrl() method instead of the Qcloud\Cos\Command\createPresignedUrl()v2:
$signedUrl = $cosClient->getPresignetUrl($method='putObject',
$args=['Bucket'=>'examplebucket-1250000000', 'Key'=>'exampleobject', 'Body'=>''],
$expires='+30 minutes');
v1:
$command = $cosClient->getCommand('putObject', array(
'Bucket' => "examplebucket-1250000000",
'Key' => "exampleobject",
'Body' => '',
));
$signedUrl = $command->createPresignedUrl('+30 minutes');
$copSource parameters of the Qcloud\Cos\Client\Copy interface are no longer compatible with older versions.v2:
$result = $cosClient->copy(
$bucket = '<srcBucket>',
$Key = '<srcKey>',
$copySorce = array(
'Region' => '<sourceRegion>',
'Bucket' => '<sourceBucket>',
'Key' => '<sourceKey>',
)
);
v1:
$result = $cosClient->Copy(
$bucket = '<srcBucket>',
$key = '<srcKey>',
$copysource = '<sourceBucket>.cos.<sourceRegion>.myqcloud.com/<sourceKey>'
);
open() to upload stream, if the local file does not exist, a 0 byte file will be uploaded without throwing an exception, only a warning.