diff --git a/sample/ImageSearch.php b/sample/ImageSearch.php index 365a201..f980c8c 100644 --- a/sample/ImageSearch.php +++ b/sample/ImageSearch.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/ImageSearchAdd.php b/sample/ImageSearchAdd.php index 0f27c1d..0d00377 100644 --- a/sample/ImageSearchAdd.php +++ b/sample/ImageSearchAdd.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/ImageSearchDelete.php b/sample/ImageSearchDelete.php index afd1e98..9e74193 100644 --- a/sample/ImageSearchDelete.php +++ b/sample/ImageSearchDelete.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/ImageSearchOpen.php b/sample/ImageSearchOpen.php index 08086da..a8d42ca 100644 --- a/sample/ImageSearchOpen.php +++ b/sample/ImageSearchOpen.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/abortMultipartUpload.php b/sample/abortMultipartUpload.php index cd89d96..739bcc8 100644 --- a/sample/abortMultipartUpload.php +++ b/sample/abortMultipartUpload.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/addHotLink.php b/sample/addHotLink.php index fdb7b16..dd263f1 100644 --- a/sample/addHotLink.php +++ b/sample/addHotLink.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/appendObject.php b/sample/appendObject.php index 6320ba0..c676fea 100644 --- a/sample/appendObject.php +++ b/sample/appendObject.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/bindCiService.php b/sample/bindCiService.php index fd888e8..4d75fb7 100644 --- a/sample/bindCiService.php +++ b/sample/bindCiService.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/blindWatermark.php b/sample/blindWatermark.php index 0ed5419..b4e242f 100644 --- a/sample/blindWatermark.php +++ b/sample/blindWatermark.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/cancelInventoryTriggerJob.php b/sample/cancelInventoryTriggerJob.php index 2bf7104..e132a2a 100644 --- a/sample/cancelInventoryTriggerJob.php +++ b/sample/cancelInventoryTriggerJob.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/cancelLiveVideoAuditing.php b/sample/cancelLiveVideoAuditing.php index e417c8d..a6547ac 100644 --- a/sample/cancelLiveVideoAuditing.php +++ b/sample/cancelLiveVideoAuditing.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/catchException.php b/sample/catchException.php index ea05fcc..686432c 100644 --- a/sample/catchException.php +++ b/sample/catchException.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/ciTransformation.php b/sample/ciTransformation.php index 6b85a69..8b375af 100644 --- a/sample/ciTransformation.php +++ b/sample/ciTransformation.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/closeImageSlim.php b/sample/closeImageSlim.php index 5b2e397..e312ef3 100644 --- a/sample/closeImageSlim.php +++ b/sample/closeImageSlim.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/closeOriginProtect.php b/sample/closeOriginProtect.php index 815181b..de533b5 100644 --- a/sample/closeOriginProtect.php +++ b/sample/closeOriginProtect.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/completeMultipartUpload.php b/sample/completeMultipartUpload.php index 7495bca..192823f 100644 --- a/sample/completeMultipartUpload.php +++ b/sample/completeMultipartUpload.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/copy.php b/sample/copy.php index 5300bcb..67d8936 100644 --- a/sample/copy.php +++ b/sample/copy.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/copyObject.php b/sample/copyObject.php index 3e4d85a..38f14c5 100644 --- a/sample/copyObject.php +++ b/sample/copyObject.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/cosClient.php b/sample/cosClient.php index e5d9366..d6e3790 100644 --- a/sample/cosClient.php +++ b/sample/cosClient.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, //园区 - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'timeout' => 10, //超时时间 'connect_timeout' => 10, //连接超时时间 'ip' => '', //ip diff --git a/sample/createAiTranslationJobs.php b/sample/createAiTranslationJobs.php index 0937d57..8eac363 100644 --- a/sample/createAiTranslationJobs.php +++ b/sample/createAiTranslationJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createAiWordsGeneralizeJobs.php b/sample/createAiWordsGeneralizeJobs.php index c94fb29..174d0f0 100644 --- a/sample/createAiWordsGeneralizeJobs.php +++ b/sample/createAiWordsGeneralizeJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createBucket.php b/sample/createBucket.php index 542290c..98df299 100644 --- a/sample/createBucket.php +++ b/sample/createBucket.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createDocProcessJobs.php b/sample/createDocProcessJobs.php index ec441fa..c6ed4dd 100644 --- a/sample/createDocProcessJobs.php +++ b/sample/createDocProcessJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createFileCompressJobs.php b/sample/createFileCompressJobs.php index afbca6e..7f2612b 100644 --- a/sample/createFileCompressJobs.php +++ b/sample/createFileCompressJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createFileHashCodeJobs.php b/sample/createFileHashCodeJobs.php index f7e4dd6..ca75586 100644 --- a/sample/createFileHashCodeJobs.php +++ b/sample/createFileHashCodeJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createFileUncompressJobs.php b/sample/createFileUncompressJobs.php index 3a920d7..d84f880 100644 --- a/sample/createFileUncompressJobs.php +++ b/sample/createFileUncompressJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createFolder.php b/sample/createFolder.php index caf645e..f758672 100644 --- a/sample/createFolder.php +++ b/sample/createFolder.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createInventoryTriggerJob.php b/sample/createInventoryTriggerJob.php index 5ce099f..52ac5e6 100644 --- a/sample/createInventoryTriggerJob.php +++ b/sample/createInventoryTriggerJob.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createM3U8PlayListJobs.php b/sample/createM3U8PlayListJobs.php index 0f041e8..508ab74 100644 --- a/sample/createM3U8PlayListJobs.php +++ b/sample/createM3U8PlayListJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaAnimationJobs.php b/sample/createMediaAnimationJobs.php index cd63d35..12a451f 100644 --- a/sample/createMediaAnimationJobs.php +++ b/sample/createMediaAnimationJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaAnimationTemplate.php b/sample/createMediaAnimationTemplate.php index 6154a58..941cbe6 100644 --- a/sample/createMediaAnimationTemplate.php +++ b/sample/createMediaAnimationTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaConcatJobs.php b/sample/createMediaConcatJobs.php index ea8da09..68d6c25 100644 --- a/sample/createMediaConcatJobs.php +++ b/sample/createMediaConcatJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaConcatTemplate.php b/sample/createMediaConcatTemplate.php index 4075a2d..4220bf4 100644 --- a/sample/createMediaConcatTemplate.php +++ b/sample/createMediaConcatTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaDigitalWatermarkJobs.php b/sample/createMediaDigitalWatermarkJobs.php index 0208ad3..55b73a0 100644 --- a/sample/createMediaDigitalWatermarkJobs.php +++ b/sample/createMediaDigitalWatermarkJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaExtractDigitalWatermarkJobs.php b/sample/createMediaExtractDigitalWatermarkJobs.php index fb005a0..0b6219f 100644 --- a/sample/createMediaExtractDigitalWatermarkJobs.php +++ b/sample/createMediaExtractDigitalWatermarkJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaHighSpeedHdTemplate.php b/sample/createMediaHighSpeedHdTemplate.php index dfff76d..95889b8 100644 --- a/sample/createMediaHighSpeedHdTemplate.php +++ b/sample/createMediaHighSpeedHdTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaJobs.php b/sample/createMediaJobs.php index 9895cef..e0a897a 100644 --- a/sample/createMediaJobs.php +++ b/sample/createMediaJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaNoiseReductionJobs.php b/sample/createMediaNoiseReductionJobs.php index 6e52fc7..83b4c41 100644 --- a/sample/createMediaNoiseReductionJobs.php +++ b/sample/createMediaNoiseReductionJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaPicProcessJobs.php b/sample/createMediaPicProcessJobs.php index 79a411b..d026838 100644 --- a/sample/createMediaPicProcessJobs.php +++ b/sample/createMediaPicProcessJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaPicProcessTemplate.php b/sample/createMediaPicProcessTemplate.php index a042f1c..8fe5f19 100644 --- a/sample/createMediaPicProcessTemplate.php +++ b/sample/createMediaPicProcessTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaQualityEstimateJobs.php b/sample/createMediaQualityEstimateJobs.php index e1c6f08..32663b9 100644 --- a/sample/createMediaQualityEstimateJobs.php +++ b/sample/createMediaQualityEstimateJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaSDRtoHDRJobs.php b/sample/createMediaSDRtoHDRJobs.php index 6dc4bda..79a7a3b 100644 --- a/sample/createMediaSDRtoHDRJobs.php +++ b/sample/createMediaSDRtoHDRJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaSegmentJobs.php b/sample/createMediaSegmentJobs.php index 00ec3aa..ad98a94 100644 --- a/sample/createMediaSegmentJobs.php +++ b/sample/createMediaSegmentJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaSmartCoverJobs.php b/sample/createMediaSmartCoverJobs.php index 574e16f..c03d435 100644 --- a/sample/createMediaSmartCoverJobs.php +++ b/sample/createMediaSmartCoverJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaSmartCoverTemplate.php b/sample/createMediaSmartCoverTemplate.php index 53f9791..2a976c3 100644 --- a/sample/createMediaSmartCoverTemplate.php +++ b/sample/createMediaSmartCoverTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaSnapshotJobs.php b/sample/createMediaSnapshotJobs.php index 669a43e..61a17d1 100644 --- a/sample/createMediaSnapshotJobs.php +++ b/sample/createMediaSnapshotJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaSnapshotTemplate.php b/sample/createMediaSnapshotTemplate.php index 0af1c5c..b7002a1 100644 --- a/sample/createMediaSnapshotTemplate.php +++ b/sample/createMediaSnapshotTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaStreamExtractJobs.php b/sample/createMediaStreamExtractJobs.php index ec44ca6..94e6cdb 100644 --- a/sample/createMediaStreamExtractJobs.php +++ b/sample/createMediaStreamExtractJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaSuperResolutionJobs.php b/sample/createMediaSuperResolutionJobs.php index c566885..53cc79e 100644 --- a/sample/createMediaSuperResolutionJobs.php +++ b/sample/createMediaSuperResolutionJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaSuperResolutionTemplate.php b/sample/createMediaSuperResolutionTemplate.php index c77313f..6caf02d 100644 --- a/sample/createMediaSuperResolutionTemplate.php +++ b/sample/createMediaSuperResolutionTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaTranscodeJobs.php b/sample/createMediaTranscodeJobs.php index 9845314..9a0aa6b 100644 --- a/sample/createMediaTranscodeJobs.php +++ b/sample/createMediaTranscodeJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaTranscodeProTemplate.php b/sample/createMediaTranscodeProTemplate.php index 24d8f1e..bb41cd0 100644 --- a/sample/createMediaTranscodeProTemplate.php +++ b/sample/createMediaTranscodeProTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaTranscodeTemplate.php b/sample/createMediaTranscodeTemplate.php index ab9d982..5330652 100644 --- a/sample/createMediaTranscodeTemplate.php +++ b/sample/createMediaTranscodeTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaVideoEnhanceJobs.php b/sample/createMediaVideoEnhanceJobs.php index d90fd13..2a11735 100644 --- a/sample/createMediaVideoEnhanceJobs.php +++ b/sample/createMediaVideoEnhanceJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaVideoEnhanceTemplate.php b/sample/createMediaVideoEnhanceTemplate.php index d18de85..6c4d37a 100644 --- a/sample/createMediaVideoEnhanceTemplate.php +++ b/sample/createMediaVideoEnhanceTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaVideoMontageJobs.php b/sample/createMediaVideoMontageJobs.php index 7af63ae..e7cd4a0 100644 --- a/sample/createMediaVideoMontageJobs.php +++ b/sample/createMediaVideoMontageJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaVideoMontageTemplate.php b/sample/createMediaVideoMontageTemplate.php index 6402892..c1c95a8 100644 --- a/sample/createMediaVideoMontageTemplate.php +++ b/sample/createMediaVideoMontageTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaVideoProcessJobs.php b/sample/createMediaVideoProcessJobs.php index 8826102..9f12f3b 100644 --- a/sample/createMediaVideoProcessJobs.php +++ b/sample/createMediaVideoProcessJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaVideoProcessTemplate.php b/sample/createMediaVideoProcessTemplate.php index 1afae6f..9f4c11a 100644 --- a/sample/createMediaVideoProcessTemplate.php +++ b/sample/createMediaVideoProcessTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaVideoTagJobs.php b/sample/createMediaVideoTagJobs.php index 19e414f..b626ac0 100644 --- a/sample/createMediaVideoTagJobs.php +++ b/sample/createMediaVideoTagJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaVoiceSeparateJobs.php b/sample/createMediaVoiceSeparateJobs.php index 651fdf3..b7c8d8d 100644 --- a/sample/createMediaVoiceSeparateJobs.php +++ b/sample/createMediaVoiceSeparateJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaVoiceSeparateTemplate.php b/sample/createMediaVoiceSeparateTemplate.php index c57053f..26e3522 100644 --- a/sample/createMediaVoiceSeparateTemplate.php +++ b/sample/createMediaVoiceSeparateTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMediaWatermarkTemplate.php b/sample/createMediaWatermarkTemplate.php index 79aa1fc..ad9f6cc 100644 --- a/sample/createMediaWatermarkTemplate.php +++ b/sample/createMediaWatermarkTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createMultipartUpload.php b/sample/createMultipartUpload.php index 72cff13..20d1d28 100644 --- a/sample/createMultipartUpload.php +++ b/sample/createMultipartUpload.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createVoiceSpeechRecognitionJobs.php b/sample/createVoiceSpeechRecognitionJobs.php index 5cdd56d..7176ae0 100644 --- a/sample/createVoiceSpeechRecognitionJobs.php +++ b/sample/createVoiceSpeechRecognitionJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createVoiceSpeechRecognitionTemplate.php b/sample/createVoiceSpeechRecognitionTemplate.php index 9524b88..fd13b14 100644 --- a/sample/createVoiceSpeechRecognitionTemplate.php +++ b/sample/createVoiceSpeechRecognitionTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createVoiceTtsJobs.php b/sample/createVoiceTtsJobs.php index b611fe2..91be274 100644 --- a/sample/createVoiceTtsJobs.php +++ b/sample/createVoiceTtsJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/createVoiceTtsTemplate.php b/sample/createVoiceTtsTemplate.php index bf3cc67..bf2aaca 100644 --- a/sample/createVoiceTtsTemplate.php +++ b/sample/createVoiceTtsTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteBucket.php b/sample/deleteBucket.php index 5c67985..dd7a1c1 100644 --- a/sample/deleteBucket.php +++ b/sample/deleteBucket.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteBucketCors.php b/sample/deleteBucketCors.php index dbd8827..f672d22 100644 --- a/sample/deleteBucketCors.php +++ b/sample/deleteBucketCors.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteBucketDomain.php b/sample/deleteBucketDomain.php index 8821069..a86259a 100644 --- a/sample/deleteBucketDomain.php +++ b/sample/deleteBucketDomain.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteBucketGuetzli.php b/sample/deleteBucketGuetzli.php index 15b9989..b8a4b8d 100644 --- a/sample/deleteBucketGuetzli.php +++ b/sample/deleteBucketGuetzli.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteBucketImageStyle.php b/sample/deleteBucketImageStyle.php index 744e988..6c8682f 100644 --- a/sample/deleteBucketImageStyle.php +++ b/sample/deleteBucketImageStyle.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteBucketLifecycle.php b/sample/deleteBucketLifecycle.php index 117ef9c..65dc273 100644 --- a/sample/deleteBucketLifecycle.php +++ b/sample/deleteBucketLifecycle.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteBucketTagging.php b/sample/deleteBucketTagging.php index 110f0d9..2ce52be 100644 --- a/sample/deleteBucketTagging.php +++ b/sample/deleteBucketTagging.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteBucketWebsite.php b/sample/deleteBucketWebsite.php index 2e90caa..6ba15ca 100644 --- a/sample/deleteBucketWebsite.php +++ b/sample/deleteBucketWebsite.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteBuckets.php b/sample/deleteBuckets.php index 928d085..f91bcfe 100644 --- a/sample/deleteBuckets.php +++ b/sample/deleteBuckets.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteFolder.php b/sample/deleteFolder.php index ecd44cc..30f4197 100644 --- a/sample/deleteFolder.php +++ b/sample/deleteFolder.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteObject.php b/sample/deleteObject.php index 940b523..2e613cd 100644 --- a/sample/deleteObject.php +++ b/sample/deleteObject.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteObjectTagging.php b/sample/deleteObjectTagging.php index 5ac8cd5..4b98f02 100644 --- a/sample/deleteObjectTagging.php +++ b/sample/deleteObjectTagging.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/deleteWorkflow.php b/sample/deleteWorkflow.php index 4bd2800..bcc2613 100644 --- a/sample/deleteWorkflow.php +++ b/sample/deleteWorkflow.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/describeInventoryTriggerJob.php b/sample/describeInventoryTriggerJob.php index 2ce252b..b60cdc4 100644 --- a/sample/describeInventoryTriggerJob.php +++ b/sample/describeInventoryTriggerJob.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/describeInventoryTriggerJobs.php b/sample/describeInventoryTriggerJobs.php index fca9681..72091a1 100644 --- a/sample/describeInventoryTriggerJobs.php +++ b/sample/describeInventoryTriggerJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/describeMediaJob.php b/sample/describeMediaJob.php index 7f08286..b2aadee 100644 --- a/sample/describeMediaJob.php +++ b/sample/describeMediaJob.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/describeMediaJobs.php b/sample/describeMediaJobs.php index 888ab69..b7efa8d 100644 --- a/sample/describeMediaJobs.php +++ b/sample/describeMediaJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/describeMediaTemplates.php b/sample/describeMediaTemplates.php index 2aece08..e2dbb5c 100644 --- a/sample/describeMediaTemplates.php +++ b/sample/describeMediaTemplates.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/describeWorkflow.php b/sample/describeWorkflow.php index 528f2b4..e346e1f 100644 --- a/sample/describeWorkflow.php +++ b/sample/describeWorkflow.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectAudio.php b/sample/detectAudio.php index 6525690..b29020e 100644 --- a/sample/detectAudio.php +++ b/sample/detectAudio.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectDocument.php b/sample/detectDocument.php index 92d2779..c2a87e1 100644 --- a/sample/detectDocument.php +++ b/sample/detectDocument.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectImage.php b/sample/detectImage.php index 672e8d6..e76750e 100644 --- a/sample/detectImage.php +++ b/sample/detectImage.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectImages.php b/sample/detectImages.php index 42ddc4c..b031c94 100644 --- a/sample/detectImages.php +++ b/sample/detectImages.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectLable.php b/sample/detectLable.php index 55aa6fb..d9df505 100644 --- a/sample/detectLable.php +++ b/sample/detectLable.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectLiveVideo.php b/sample/detectLiveVideo.php index 2f6c35c..171da0a 100644 --- a/sample/detectLiveVideo.php +++ b/sample/detectLiveVideo.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectText.php b/sample/detectText.php index d62b91d..9d45496 100644 --- a/sample/detectText.php +++ b/sample/detectText.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectVideo.php b/sample/detectVideo.php index 973788a..6c35911 100644 --- a/sample/detectVideo.php +++ b/sample/detectVideo.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectVirus.php b/sample/detectVirus.php index 5f54523..54ac7c0 100644 --- a/sample/detectVirus.php +++ b/sample/detectVirus.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/detectWebpage.php b/sample/detectWebpage.php index 3bed692..972029e 100644 --- a/sample/detectWebpage.php +++ b/sample/detectWebpage.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/document2dstType.php b/sample/document2dstType.php index 14d5332..536af1a 100644 --- a/sample/document2dstType.php +++ b/sample/document2dstType.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/doesBucketExist.php b/sample/doesBucketExist.php index ef0a614..ca7d6f8 100644 --- a/sample/doesBucketExist.php +++ b/sample/doesBucketExist.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/doesObjectExist.php b/sample/doesObjectExist.php index 3c3971b..5cf3e7d 100644 --- a/sample/doesObjectExist.php +++ b/sample/doesObjectExist.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/download.php b/sample/download.php index 64b37be..3a6bb90 100644 --- a/sample/download.php +++ b/sample/download.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/downloadFolder.php b/sample/downloadFolder.php index 6944adf..fbc06f4 100644 --- a/sample/downloadFolder.php +++ b/sample/downloadFolder.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey diff --git a/sample/fileJobs4Hash.php b/sample/fileJobs4Hash.php index 655fe84..3e9b773 100644 --- a/sample/fileJobs4Hash.php +++ b/sample/fileJobs4Hash.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getActionSequence.php b/sample/getActionSequence.php index 1cb5f8d..424809c 100644 --- a/sample/getActionSequence.php +++ b/sample/getActionSequence.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getAiBucketList.php b/sample/getAiBucketList.php index e063a65..55162c6 100644 --- a/sample/getAiBucketList.php +++ b/sample/getAiBucketList.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须用https + 'scheme' => 'https', // 万象接口必须用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getAiQueueList.php b/sample/getAiQueueList.php index 6e41522..362ee99 100644 --- a/sample/getAiQueueList.php +++ b/sample/getAiQueueList.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须为https + 'scheme' => 'https', // 万象接口必须为https 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBlindWatermark.php b/sample/getBlindWatermark.php index bac73d8..ec4437f 100644 --- a/sample/getBlindWatermark.php +++ b/sample/getBlindWatermark.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketAccelerate.php b/sample/getBucketAccelerate.php index 3023b82..469b20f 100644 --- a/sample/getBucketAccelerate.php +++ b/sample/getBucketAccelerate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketAcl.php b/sample/getBucketAcl.php index 9e9d8c6..d6ee308 100644 --- a/sample/getBucketAcl.php +++ b/sample/getBucketAcl.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketCors.php b/sample/getBucketCors.php index 20aa61b..539c4b5 100644 --- a/sample/getBucketCors.php +++ b/sample/getBucketCors.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketDomain.php b/sample/getBucketDomain.php index c4127ce..ed30d48 100644 --- a/sample/getBucketDomain.php +++ b/sample/getBucketDomain.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketGuetzli.php b/sample/getBucketGuetzli.php index 01a0f5c..f434ba3 100644 --- a/sample/getBucketGuetzli.php +++ b/sample/getBucketGuetzli.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketImageStyle.php b/sample/getBucketImageStyle.php index d41b3f2..1f85a93 100644 --- a/sample/getBucketImageStyle.php +++ b/sample/getBucketImageStyle.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketInventory.php b/sample/getBucketInventory.php index 7a6a066..b1982fa 100644 --- a/sample/getBucketInventory.php +++ b/sample/getBucketInventory.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketLifecycle.php b/sample/getBucketLifecycle.php index 38fc5b9..7a56751 100644 --- a/sample/getBucketLifecycle.php +++ b/sample/getBucketLifecycle.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketLogging.php b/sample/getBucketLogging.php index ab1f35c..6634af0 100644 --- a/sample/getBucketLogging.php +++ b/sample/getBucketLogging.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketReferer.php b/sample/getBucketReferer.php index 96dd058..021ef42 100644 --- a/sample/getBucketReferer.php +++ b/sample/getBucketReferer.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketTagging.php b/sample/getBucketTagging.php index d6be227..2bb65e1 100644 --- a/sample/getBucketTagging.php +++ b/sample/getBucketTagging.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getBucketWebsite.php b/sample/getBucketWebsite.php index 64ae21f..2e1f41e 100644 --- a/sample/getBucketWebsite.php +++ b/sample/getBucketWebsite.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getCiService.php b/sample/getCiService.php index 694cc67..0a21d59 100644 --- a/sample/getCiService.php +++ b/sample/getCiService.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDescribeDocProcessBuckets.php b/sample/getDescribeDocProcessBuckets.php index 6bb001b..017ebfe 100644 --- a/sample/getDescribeDocProcessBuckets.php +++ b/sample/getDescribeDocProcessBuckets.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDescribeDocProcessJob.php b/sample/getDescribeDocProcessJob.php index 37f0280..6aa809f 100644 --- a/sample/getDescribeDocProcessJob.php +++ b/sample/getDescribeDocProcessJob.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDescribeDocProcessJobs.php b/sample/getDescribeDocProcessJobs.php index 54aa18d..28afdcd 100644 --- a/sample/getDescribeDocProcessJobs.php +++ b/sample/getDescribeDocProcessJobs.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDescribeDocProcessQueues.php b/sample/getDescribeDocProcessQueues.php index 06a1b05..dbd0006 100644 --- a/sample/getDescribeDocProcessQueues.php +++ b/sample/getDescribeDocProcessQueues.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDescribeMediaBuckets.php b/sample/getDescribeMediaBuckets.php index c33c4eb..03360d9 100644 --- a/sample/getDescribeMediaBuckets.php +++ b/sample/getDescribeMediaBuckets.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDescribeMediaQueues.php b/sample/getDescribeMediaQueues.php index 2aeb867..e114b38 100644 --- a/sample/getDescribeMediaQueues.php +++ b/sample/getDescribeMediaQueues.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDescribeMediaVoiceSeparateJob.php b/sample/getDescribeMediaVoiceSeparateJob.php index 82ab9d6..199bb72 100644 --- a/sample/getDescribeMediaVoiceSeparateJob.php +++ b/sample/getDescribeMediaVoiceSeparateJob.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDetectAudioResult.php b/sample/getDetectAudioResult.php index ab9a242..da2e475 100644 --- a/sample/getDetectAudioResult.php +++ b/sample/getDetectAudioResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDetectDocumentResult.php b/sample/getDetectDocumentResult.php index 0a2145e..bbe326e 100644 --- a/sample/getDetectDocumentResult.php +++ b/sample/getDetectDocumentResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDetectImageResult.php b/sample/getDetectImageResult.php index 399a75e..df88cf5 100644 --- a/sample/getDetectImageResult.php +++ b/sample/getDetectImageResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDetectTextResult.php b/sample/getDetectTextResult.php index fef9024..6839166 100644 --- a/sample/getDetectTextResult.php +++ b/sample/getDetectTextResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDetectVideoResult.php b/sample/getDetectVideoResult.php index 3963493..a713ebc 100644 --- a/sample/getDetectVideoResult.php +++ b/sample/getDetectVideoResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDetectVirusResult.php b/sample/getDetectVirusResult.php index acd8a1e..a755a9d 100644 --- a/sample/getDetectVirusResult.php +++ b/sample/getDetectVirusResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getDetectWebpageResult.php b/sample/getDetectWebpageResult.php index 6c938f4..0e02c57 100644 --- a/sample/getDetectWebpageResult.php +++ b/sample/getDetectWebpageResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 审核时必须为https + 'scheme' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getFileCompressResult.php b/sample/getFileCompressResult.php index d7a40af..8390c69 100644 --- a/sample/getFileCompressResult.php +++ b/sample/getFileCompressResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getFileHashCodeResult.php b/sample/getFileHashCodeResult.php index 0c8012b..a41d9be 100644 --- a/sample/getFileHashCodeResult.php +++ b/sample/getFileHashCodeResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getFileProcessQueueList.php b/sample/getFileProcessQueueList.php index a2af4c4..99c6f05 100644 --- a/sample/getFileProcessQueueList.php +++ b/sample/getFileProcessQueueList.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getFileUncompressResult.php b/sample/getFileUncompressResult.php index dc29785..361487c 100644 --- a/sample/getFileUncompressResult.php +++ b/sample/getFileUncompressResult.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getHotLink.php b/sample/getHotLink.php index 48f7749..b32a487 100644 --- a/sample/getHotLink.php +++ b/sample/getHotLink.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getImageSlim.php b/sample/getImageSlim.php index ad40ba8..f14e807 100644 --- a/sample/getImageSlim.php +++ b/sample/getImageSlim.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getLiveCode.php b/sample/getLiveCode.php index 19ddee6..970d664 100644 --- a/sample/getLiveCode.php +++ b/sample/getLiveCode.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getMediaInfo.php b/sample/getMediaInfo.php index a42c6ab..29d44c5 100644 --- a/sample/getMediaInfo.php +++ b/sample/getMediaInfo.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getObject.php b/sample/getObject.php index 89a0098..d5101d2 100644 --- a/sample/getObject.php +++ b/sample/getObject.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getObjectSensitiveContentRecognition.php b/sample/getObjectSensitiveContentRecognition.php index e8b5caf..9c9151f 100644 --- a/sample/getObjectSensitiveContentRecognition.php +++ b/sample/getObjectSensitiveContentRecognition.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getObjectTagging.php b/sample/getObjectTagging.php index 283c95b..9795806 100644 --- a/sample/getObjectTagging.php +++ b/sample/getObjectTagging.php @@ -7,7 +7,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getObjectUrl.php b/sample/getObjectUrl.php index c295d35..d846767 100644 --- a/sample/getObjectUrl.php +++ b/sample/getObjectUrl.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey diff --git a/sample/getObjectWithoutSign.php b/sample/getObjectWithoutSign.php index 74fa63e..63b20d8 100644 --- a/sample/getObjectWithoutSign.php +++ b/sample/getObjectWithoutSign.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getOriginProtect.php b/sample/getOriginProtect.php index 821fcbd..a4b6480 100644 --- a/sample/getOriginProtect.php +++ b/sample/getOriginProtect.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getPicBucketList.php b/sample/getPicBucketList.php index f24aa01..1b6cfb7 100644 --- a/sample/getPicBucketList.php +++ b/sample/getPicBucketList.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须用https + 'scheme' => 'https', // 万象接口必须用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getPicQueueList.php b/sample/getPicQueueList.php index 64d237e..8d25a1c 100644 --- a/sample/getPicQueueList.php +++ b/sample/getPicQueueList.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须为https + 'scheme' => 'https', // 万象接口必须为https 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getPresignedUrl.php b/sample/getPresignedUrl.php index 46d406e..4fd0f3e 100644 --- a/sample/getPresignedUrl.php +++ b/sample/getPresignedUrl.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getPrivateM3U8.php b/sample/getPrivateM3U8.php index 8c0aa66..92e57c2 100644 --- a/sample/getPrivateM3U8.php +++ b/sample/getPrivateM3U8.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getSnapshot.php b/sample/getSnapshot.php index aa2f035..1ea785e 100644 --- a/sample/getSnapshot.php +++ b/sample/getSnapshot.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getWorkflowInstance.php b/sample/getWorkflowInstance.php index 7de15ee..da1cd75 100644 --- a/sample/getWorkflowInstance.php +++ b/sample/getWorkflowInstance.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 默认http + 'scheme' => 'https', // 默认http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/getWorkflowInstances.php b/sample/getWorkflowInstances.php index ab76d09..e25778c 100644 --- a/sample/getWorkflowInstances.php +++ b/sample/getWorkflowInstances.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 默认http + 'scheme' => 'https', // 默认http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/headBucket.php b/sample/headBucket.php index 636325e..1551561 100644 --- a/sample/headBucket.php +++ b/sample/headBucket.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/headObject.php b/sample/headObject.php index 2e60251..38425dd 100644 --- a/sample/headObject.php +++ b/sample/headObject.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/iDCardOCR.php b/sample/iDCardOCR.php index 9f9a096..1642c1b 100644 --- a/sample/iDCardOCR.php +++ b/sample/iDCardOCR.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageAssessQualityProcess.php b/sample/imageAssessQualityProcess.php index 0404462..8c28f00 100644 --- a/sample/imageAssessQualityProcess.php +++ b/sample/imageAssessQualityProcess.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageAve.php b/sample/imageAve.php index 3738fc1..12269c1 100644 --- a/sample/imageAve.php +++ b/sample/imageAve.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageDetectCarProcess.php b/sample/imageDetectCarProcess.php index 6d30a46..c22146c 100644 --- a/sample/imageDetectCarProcess.php +++ b/sample/imageDetectCarProcess.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageDetectFace.php b/sample/imageDetectFace.php index 06fb08d..8b2e575 100644 --- a/sample/imageDetectFace.php +++ b/sample/imageDetectFace.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageExif.php b/sample/imageExif.php index 8fa0f2b..707780d 100644 --- a/sample/imageExif.php +++ b/sample/imageExif.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageFaceEffect.php b/sample/imageFaceEffect.php index a022fe2..a62af08 100644 --- a/sample/imageFaceEffect.php +++ b/sample/imageFaceEffect.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageInfo.php b/sample/imageInfo.php index 18ca78a..5efa048 100644 --- a/sample/imageInfo.php +++ b/sample/imageInfo.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageMogr.php b/sample/imageMogr.php index f415d1c..7299e43 100644 --- a/sample/imageMogr.php +++ b/sample/imageMogr.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcess.php b/sample/imageProcess.php index ae9127d..69dd68d 100644 --- a/sample/imageProcess.php +++ b/sample/imageProcess.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessBright.php b/sample/imageProcessBright.php index 90bc475..740038e 100644 --- a/sample/imageProcessBright.php +++ b/sample/imageProcessBright.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessChannel.php b/sample/imageProcessChannel.php index 2039c95..e0ba9e4 100644 --- a/sample/imageProcessChannel.php +++ b/sample/imageProcessChannel.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessContrast.php b/sample/imageProcessContrast.php index 83ca0b0..7724745 100644 --- a/sample/imageProcessContrast.php +++ b/sample/imageProcessContrast.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessCrop.php b/sample/imageProcessCrop.php index ede0c20..974464a 100644 --- a/sample/imageProcessCrop.php +++ b/sample/imageProcessCrop.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessFormat.php b/sample/imageProcessFormat.php index dcae577..c6f95ba 100644 --- a/sample/imageProcessFormat.php +++ b/sample/imageProcessFormat.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessFormatAvif.php b/sample/imageProcessFormatAvif.php index 84dba8e..34a1a35 100644 --- a/sample/imageProcessFormatAvif.php +++ b/sample/imageProcessFormatAvif.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessFormatHeif.php b/sample/imageProcessFormatHeif.php index 30e8b1c..d275fbf 100644 --- a/sample/imageProcessFormatHeif.php +++ b/sample/imageProcessFormatHeif.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessFormatSvgc.php b/sample/imageProcessFormatSvgc.php index d09e920..dacd914 100644 --- a/sample/imageProcessFormatSvgc.php +++ b/sample/imageProcessFormatSvgc.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessFormatTpg.php b/sample/imageProcessFormatTpg.php index 68dd49c..5b64312 100644 --- a/sample/imageProcessFormatTpg.php +++ b/sample/imageProcessFormatTpg.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessFormatWebp.php b/sample/imageProcessFormatWebp.php index 6f74ec9..32e7ec6 100644 --- a/sample/imageProcessFormatWebp.php +++ b/sample/imageProcessFormatWebp.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessGaussianBlur.php b/sample/imageProcessGaussianBlur.php index 2fe76a2..8db4fdd 100644 --- a/sample/imageProcessGaussianBlur.php +++ b/sample/imageProcessGaussianBlur.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessGrayscale.php b/sample/imageProcessGrayscale.php index 6b7f729..1ce1532 100644 --- a/sample/imageProcessGrayscale.php +++ b/sample/imageProcessGrayscale.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessImageView.php b/sample/imageProcessImageView.php index 342222e..ae9d875 100644 --- a/sample/imageProcessImageView.php +++ b/sample/imageProcessImageView.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessQuality.php b/sample/imageProcessQuality.php index f6d3d22..dd7e8b9 100644 --- a/sample/imageProcessQuality.php +++ b/sample/imageProcessQuality.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessRotate.php b/sample/imageProcessRotate.php index 050a2e4..016a889 100644 --- a/sample/imageProcessRotate.php +++ b/sample/imageProcessRotate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessSharpen.php b/sample/imageProcessSharpen.php index 1a47807..8440c7e 100644 --- a/sample/imageProcessSharpen.php +++ b/sample/imageProcessSharpen.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessSizeLimit.php b/sample/imageProcessSizeLimit.php index ad666a4..de6f4f8 100644 --- a/sample/imageProcessSizeLimit.php +++ b/sample/imageProcessSizeLimit.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessStrip.php b/sample/imageProcessStrip.php index b36e089..76071d7 100644 --- a/sample/imageProcessStrip.php +++ b/sample/imageProcessStrip.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessThumbnail.php b/sample/imageProcessThumbnail.php index fb8a27c..0dd2fb5 100644 --- a/sample/imageProcessThumbnail.php +++ b/sample/imageProcessThumbnail.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessWatermarkImage.php b/sample/imageProcessWatermarkImage.php index 5f5d9e9..83916f2 100644 --- a/sample/imageProcessWatermarkImage.php +++ b/sample/imageProcessWatermarkImage.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageProcessWatermarkText.php b/sample/imageProcessWatermarkText.php index fd28656..f5ba72a 100644 --- a/sample/imageProcessWatermarkText.php +++ b/sample/imageProcessWatermarkText.php @@ -9,7 +9,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageRepairProcess.php b/sample/imageRepairProcess.php index dc65b8f..90b4e7a 100644 --- a/sample/imageRepairProcess.php +++ b/sample/imageRepairProcess.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageView.php b/sample/imageView.php index b8f5007..c261e23 100644 --- a/sample/imageView.php +++ b/sample/imageView.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/imageWatermark.php b/sample/imageWatermark.php index 93bd167..a7a5f90 100644 --- a/sample/imageWatermark.php +++ b/sample/imageWatermark.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/listBuckets.php b/sample/listBuckets.php index 73efd6c..17aeb10 100644 --- a/sample/listBuckets.php +++ b/sample/listBuckets.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/listMultipartUploads.php b/sample/listMultipartUploads.php index b9fb735..d10c66b 100644 --- a/sample/listMultipartUploads.php +++ b/sample/listMultipartUploads.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/listObjects.php b/sample/listObjects.php index 1254475..91a4e1a 100644 --- a/sample/listObjects.php +++ b/sample/listObjects.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/listParts.php b/sample/listParts.php index 3384e0d..92ada0a 100644 --- a/sample/listParts.php +++ b/sample/listParts.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/openAiService.php b/sample/openAiService.php index 08fd22b..d015a38 100644 --- a/sample/openAiService.php +++ b/sample/openAiService.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须用https + 'scheme' => 'https', // 万象接口必须用https 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/openFileProcessService.php b/sample/openFileProcessService.php index b862bb3..7c5c872 100644 --- a/sample/openFileProcessService.php +++ b/sample/openFileProcessService.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/openImageSlim.php b/sample/openImageSlim.php index 6e7334c..c4b990d 100644 --- a/sample/openImageSlim.php +++ b/sample/openImageSlim.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/openOriginProtect.php b/sample/openOriginProtect.php index 39c2076..f80910b 100644 --- a/sample/openOriginProtect.php +++ b/sample/openOriginProtect.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/opticalOcrRecognition.php b/sample/opticalOcrRecognition.php index 373deee..ba10cf7 100644 --- a/sample/opticalOcrRecognition.php +++ b/sample/opticalOcrRecognition.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/picOperations.php b/sample/picOperations.php index 0e9ea13..7d26e55 100644 --- a/sample/picOperations.php +++ b/sample/picOperations.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBlindWatermark.php b/sample/putBlindWatermark.php index 2c8932a..22dd7ec 100644 --- a/sample/putBlindWatermark.php +++ b/sample/putBlindWatermark.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketAccelerate.php b/sample/putBucketAccelerate.php index 0bebe05..18888c8 100644 --- a/sample/putBucketAccelerate.php +++ b/sample/putBucketAccelerate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketAcl.php b/sample/putBucketAcl.php index 3adcbf6..7e45321 100644 --- a/sample/putBucketAcl.php +++ b/sample/putBucketAcl.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketCors.php b/sample/putBucketCors.php index 762e56b..6f4b4f3 100644 --- a/sample/putBucketCors.php +++ b/sample/putBucketCors.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketDomain.php b/sample/putBucketDomain.php index 3a3ea15..7bfa741 100644 --- a/sample/putBucketDomain.php +++ b/sample/putBucketDomain.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketGuetzli.php b/sample/putBucketGuetzli.php index 465915a..bf4c320 100644 --- a/sample/putBucketGuetzli.php +++ b/sample/putBucketGuetzli.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketImageStyle.php b/sample/putBucketImageStyle.php index 4b75eda..de81bce 100644 --- a/sample/putBucketImageStyle.php +++ b/sample/putBucketImageStyle.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketInventory.php b/sample/putBucketInventory.php index ee56658..a560708 100644 --- a/sample/putBucketInventory.php +++ b/sample/putBucketInventory.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketLifecycle.php b/sample/putBucketLifecycle.php index 58d9da3..f0e4f57 100644 --- a/sample/putBucketLifecycle.php +++ b/sample/putBucketLifecycle.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketLogging.php b/sample/putBucketLogging.php index c9bf830..6850b37 100644 --- a/sample/putBucketLogging.php +++ b/sample/putBucketLogging.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketReferer.php b/sample/putBucketReferer.php index 64ba0bc..fd7d4af 100644 --- a/sample/putBucketReferer.php +++ b/sample/putBucketReferer.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketTagging.php b/sample/putBucketTagging.php index 65d9666..2622ee3 100644 --- a/sample/putBucketTagging.php +++ b/sample/putBucketTagging.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putBucketWebsite.php b/sample/putBucketWebsite.php index f1b91f6..b2521ad 100644 --- a/sample/putBucketWebsite.php +++ b/sample/putBucketWebsite.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putImageStyle.php b/sample/putImageStyle.php index 250730a..2fb92af 100644 --- a/sample/putImageStyle.php +++ b/sample/putImageStyle.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putObject.php b/sample/putObject.php index 8a66c4c..ccfbbe7 100644 --- a/sample/putObject.php +++ b/sample/putObject.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putObjectTagging.php b/sample/putObjectTagging.php index dc05fb4..0843632 100644 --- a/sample/putObjectTagging.php +++ b/sample/putObjectTagging.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/putQrcode.php b/sample/putQrcode.php index dafc4fd..5a0eace 100644 --- a/sample/putQrcode.php +++ b/sample/putQrcode.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/qrcode.php b/sample/qrcode.php index 32d35e7..eb04c1d 100644 --- a/sample/qrcode.php +++ b/sample/qrcode.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/qrcodeGenerate.php b/sample/qrcodeGenerate.php index 078dcf3..ed604b1 100644 --- a/sample/qrcodeGenerate.php +++ b/sample/qrcodeGenerate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/restoreObject.php b/sample/restoreObject.php index cfa21cc..ac6a1aa 100644 --- a/sample/restoreObject.php +++ b/sample/restoreObject.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/selectObjectContent.php b/sample/selectObjectContent.php index 3c6f5a0..e204c22 100644 --- a/sample/selectObjectContent.php +++ b/sample/selectObjectContent.php @@ -7,7 +7,7 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的region可以在控制台查看,https://console.cloud.tencent.com/cos5/bucket $cosClient = new Qcloud\Cos\Client(array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey diff --git a/sample/textWatermark.php b/sample/textWatermark.php index 9e0e0a6..ea1aa47 100644 --- a/sample/textWatermark.php +++ b/sample/textWatermark.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/trafficLimit.php b/sample/trafficLimit.php index 08c6095..5e20ea7 100644 --- a/sample/trafficLimit.php +++ b/sample/trafficLimit.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/triggerWorkflow.php b/sample/triggerWorkflow.php index 91a7062..8147399 100644 --- a/sample/triggerWorkflow.php +++ b/sample/triggerWorkflow.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 默认http + 'scheme' => 'https', // 默认http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/unBindCiService.php b/sample/unBindCiService.php index 03b42f5..567c0eb 100644 --- a/sample/unBindCiService.php +++ b/sample/unBindCiService.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateAiQueue.php b/sample/updateAiQueue.php index 6757d57..d517371 100644 --- a/sample/updateAiQueue.php +++ b/sample/updateAiQueue.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须为https + 'scheme' => 'https', // 万象接口必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateDocProcessQueue.php b/sample/updateDocProcessQueue.php index a7f7e1e..f7310d1 100644 --- a/sample/updateDocProcessQueue.php +++ b/sample/updateDocProcessQueue.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateFileProcessQueue.php b/sample/updateFileProcessQueue.php index 3e803af..753812b 100644 --- a/sample/updateFileProcessQueue.php +++ b/sample/updateFileProcessQueue.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaAnimationTemplate.php b/sample/updateMediaAnimationTemplate.php index b7de25c..c8a71aa 100644 --- a/sample/updateMediaAnimationTemplate.php +++ b/sample/updateMediaAnimationTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaConcatTemplate.php b/sample/updateMediaConcatTemplate.php index df03187..d791d9d 100644 --- a/sample/updateMediaConcatTemplate.php +++ b/sample/updateMediaConcatTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaHighSpeedHdTemplate.php b/sample/updateMediaHighSpeedHdTemplate.php index d4d52f2..b057482 100644 --- a/sample/updateMediaHighSpeedHdTemplate.php +++ b/sample/updateMediaHighSpeedHdTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaPicProcessTemplate.php b/sample/updateMediaPicProcessTemplate.php index 00b884d..e3f871d 100644 --- a/sample/updateMediaPicProcessTemplate.php +++ b/sample/updateMediaPicProcessTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaQueue.php b/sample/updateMediaQueue.php index eff1f62..24d1a34 100644 --- a/sample/updateMediaQueue.php +++ b/sample/updateMediaQueue.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaSmartCoverTemplate.php b/sample/updateMediaSmartCoverTemplate.php index d76490d..7789d28 100644 --- a/sample/updateMediaSmartCoverTemplate.php +++ b/sample/updateMediaSmartCoverTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaSnapshotTemplate.php b/sample/updateMediaSnapshotTemplate.php index 1998979..86d6356 100644 --- a/sample/updateMediaSnapshotTemplate.php +++ b/sample/updateMediaSnapshotTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaSuperResolutionTemplate.php b/sample/updateMediaSuperResolutionTemplate.php index a6cbad3..0101225 100644 --- a/sample/updateMediaSuperResolutionTemplate.php +++ b/sample/updateMediaSuperResolutionTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaTranscodeProTemplate.php b/sample/updateMediaTranscodeProTemplate.php index be2119a..1ba0070 100644 --- a/sample/updateMediaTranscodeProTemplate.php +++ b/sample/updateMediaTranscodeProTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaTranscodeTemplate.php b/sample/updateMediaTranscodeTemplate.php index c011b9d..9a9bd39 100644 --- a/sample/updateMediaTranscodeTemplate.php +++ b/sample/updateMediaTranscodeTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaVideoEnhanceTemplate.php b/sample/updateMediaVideoEnhanceTemplate.php index 1af06d4..0216bc6 100644 --- a/sample/updateMediaVideoEnhanceTemplate.php +++ b/sample/updateMediaVideoEnhanceTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaVideoMontageTemplate.php b/sample/updateMediaVideoMontageTemplate.php index 647088e..bfdbdc6 100644 --- a/sample/updateMediaVideoMontageTemplate.php +++ b/sample/updateMediaVideoMontageTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaVideoProcessTemplate.php b/sample/updateMediaVideoProcessTemplate.php index 02a6caa..8ba03cf 100644 --- a/sample/updateMediaVideoProcessTemplate.php +++ b/sample/updateMediaVideoProcessTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaVoiceSeparateTemplate.php b/sample/updateMediaVoiceSeparateTemplate.php index b754d6a..cb51873 100644 --- a/sample/updateMediaVoiceSeparateTemplate.php +++ b/sample/updateMediaVoiceSeparateTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateMediaWatermarkTemplate.php b/sample/updateMediaWatermarkTemplate.php index cdfe584..7010b99 100644 --- a/sample/updateMediaWatermarkTemplate.php +++ b/sample/updateMediaWatermarkTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updatePicQueue.php b/sample/updatePicQueue.php index 52555da..cf11634 100644 --- a/sample/updatePicQueue.php +++ b/sample/updatePicQueue.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须为https + 'scheme' => 'https', // 万象接口必须为https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateVoiceSpeechRecognitionTemplate.php b/sample/updateVoiceSpeechRecognitionTemplate.php index b54d7d2..b037e82 100644 --- a/sample/updateVoiceSpeechRecognitionTemplate.php +++ b/sample/updateVoiceSpeechRecognitionTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/updateVoiceTtsTemplate.php b/sample/updateVoiceTtsTemplate.php index 9c3f846..d57ee31 100644 --- a/sample/updateVoiceTtsTemplate.php +++ b/sample/updateVoiceTtsTemplate.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', // 万象接口必须使用https + 'scheme' => 'https', // 万象接口必须使用https 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/upload.php b/sample/upload.php index 19dc921..9a9cf13 100644 --- a/sample/upload.php +++ b/sample/upload.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/sample/uploadFolder.php b/sample/uploadFolder.php index 65186cd..09f87ac 100644 --- a/sample/uploadFolder.php +++ b/sample/uploadFolder.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey diff --git a/sample/uploadPart.php b/sample/uploadPart.php index 34d055e..b915aea 100644 --- a/sample/uploadPart.php +++ b/sample/uploadPart.php @@ -8,7 +8,7 @@ $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'scheme' => 'https', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId, 'secretKey' => $secretKey))); diff --git a/src/Client.php b/src/Client.php index 10a30a3..967dcfd 100644 --- a/src/Client.php +++ b/src/Client.php @@ -244,34 +244,40 @@ class Client extends GuzzleClient { private $desc; private $action; private $operation; - private $cosConfig; private $signature; private $rawCosConfig; + private $cosConfig = [ + 'scheme' => 'http', + 'region' => null, + 'credentials' => [ + 'appId' => null, + 'secretId' => '', + 'secretKey' => '', + 'anonymous' => false, + 'token' => null, + ], + 'timeout' => 3600, + 'connect_timeout' => 3600, + 'ip' => null, + 'port' => null, + 'endpoint' => null, + 'domain' => null, + 'proxy' => null, + 'retry' => 1, + 'userAgent' => 'cos-php-sdk-v5.' . Client::VERSION, + 'pathStyle' => false, + 'signHost' => true, + 'allow_redirects' => false, + 'allow_accelerate' => false, + 'timezone' => 'PRC', + 'locationWithScheme' => false, + ]; + public function __construct(array $cosConfig) { $this->rawCosConfig = $cosConfig; - $this->cosConfig['schema'] = isset($cosConfig['schema']) ? $cosConfig['schema'] : 'http'; - $this->cosConfig['region'] = isset($cosConfig['region']) ? region_map($cosConfig['region']) : null; - $this->cosConfig['appId'] = isset($cosConfig['credentials']['appId']) ? $cosConfig['credentials']['appId'] : null; - $this->cosConfig['secretId'] = isset($cosConfig['credentials']['secretId']) ? trim($cosConfig['credentials']['secretId']) : ''; - $this->cosConfig['secretKey'] = isset($cosConfig['credentials']['secretKey']) ? trim($cosConfig['credentials']['secretKey']) : ''; - $this->cosConfig['anonymous'] = isset($cosConfig['credentials']['anonymous']) ? $cosConfig['credentials']['anonymous'] : false; - $this->cosConfig['token'] = isset($cosConfig['credentials']['token']) ? trim($cosConfig['credentials']['token']) : null; - $this->cosConfig['timeout'] = isset($cosConfig['timeout']) ? $cosConfig['timeout'] : 3600; - $this->cosConfig['connect_timeout'] = isset($cosConfig['connect_timeout']) ? $cosConfig['connect_timeout'] : 3600; - $this->cosConfig['ip'] = isset($cosConfig['ip']) ? $cosConfig['ip'] : null; - $this->cosConfig['port'] = isset($cosConfig['port']) ? $cosConfig['port'] : null; - $this->cosConfig['endpoint'] = isset($cosConfig['endpoint']) ? $cosConfig['endpoint'] : null; - $this->cosConfig['domain'] = isset($cosConfig['domain']) ? $cosConfig['domain'] : null; - $this->cosConfig['proxy'] = isset($cosConfig['proxy']) ? $cosConfig['proxy'] : null; - $this->cosConfig['retry'] = isset($cosConfig['retry']) ? $cosConfig['retry'] : 1; - $this->cosConfig['userAgent'] = isset($cosConfig['userAgent']) ? $cosConfig['userAgent'] : 'cos-php-sdk-v5.'. Client::VERSION; - $this->cosConfig['pathStyle'] = isset($cosConfig['pathStyle']) ? $cosConfig['pathStyle'] : false; - $this->cosConfig['signHost'] = isset($cosConfig['signHost']) ? $cosConfig['signHost'] : true; - $this->cosConfig['allow_redirects'] = isset($cosConfig['allow_redirects']) ? $cosConfig['allow_redirects'] : false; - $this->cosConfig['allow_accelerate'] = isset($cosConfig['allow_accelerate']) ? $cosConfig['allow_accelerate'] : false; - $this->cosConfig['timezone'] = isset($cosConfig['timezone']) ? $cosConfig['timezone'] : 'PRC'; - $this->cosConfig['locationWithSchema'] = isset($cosConfig['locationWithSchema']) ? $cosConfig['locationWithSchema'] : false; + + $this->cosConfig = processCosConfig(array_replace_recursive($this->cosConfig, $cosConfig)); // check config $this->inputCheck(); @@ -295,7 +301,7 @@ public function __construct(array $cosConfig) { $this->signature = new Signature($this->cosConfig['secretId'], $this->cosConfig['secretKey'], $this->cosConfig, $this->cosConfig['token']); $area = $this->cosConfig['allow_accelerate'] ? 'accelerate' : $this->cosConfig['region']; $this->httpClient = new HttpClient([ - 'base_uri' => "{$this->cosConfig['schema']}://cos.{$area}.myqcloud.com/", + 'base_uri' => "{$this->cosConfig['scheme']}://cos.{$area}.myqcloud.com/", 'timeout' => $this->cosConfig['timeout'], 'handler' => $handler, 'proxy' => $this->cosConfig['proxy'], diff --git a/src/CommandToRequestTransformer.php b/src/CommandToRequestTransformer.php index d01c0be..defc9aa 100644 --- a/src/CommandToRequestTransformer.php +++ b/src/CommandToRequestTransformer.php @@ -37,7 +37,7 @@ public function bucketStyleTransformer( CommandInterface $command, RequestInterf $uri = $this->config['ip'] . ":" . $this->config['port']; } } - return $request->withUri(new Uri($this->config['schema']."://". $uri. "/")); + return $request->withUri(new Uri($this->config['scheme']."://". $uri. "/")); } $operation = $this->operation; $bucketname = $command['Bucket']; @@ -92,7 +92,7 @@ public function bucketStyleTransformer( CommandInterface $command, RequestInterf } } - $path = $this->config['schema'].'://'. $host . $uri; + $path = $this->config['scheme'].'://'. $host . $uri; $uri = new Uri( $path ); $query = $request->getUri()->getQuery(); if ( $uri->getQuery() != $query && $uri->getQuery() != '' ) { @@ -254,12 +254,12 @@ public function cosDomain2CiTransformer(CommandInterface $command, $request) { } // 万象接口需要https,http方式报错 - if ($this->config['schema'] !== 'https') { - $e = new Exception\CosException('CI request schema must be "https", instead of "http"'); + if ($this->config['scheme'] !== 'https') { + $e = new Exception\CosException('CI request scheme must be "https", instead of "http"'); $e->setExceptionCode('Invalid Argument'); throw $e; } - $path = $this->config['schema'].'://'. $host . $request->getUri()->getPath(); + $path = $this->config['scheme'].'://'. $host . $request->getUri()->getPath(); $uri = new Uri( $path ); $query = $request->getUri()->getQuery(); $uri = $uri->withQuery( $query ); @@ -379,8 +379,8 @@ public function cosDomain2CiTransformer(CommandInterface $command, $request) { ); if (key_exists($action, $ciActions)) { // 万象接口需要https,http方式报错 - if ($this->config['schema'] !== 'https') { - $e = new Exception\CosException('CI request schema must be "https", instead of "http"'); + if ($this->config['scheme'] !== 'https') { + $e = new Exception\CosException('CI request scheme must be "https", instead of "http"'); $e->setExceptionCode('Invalid Argument'); throw $e; } @@ -400,7 +400,7 @@ public function cosDomain2CiTransformer(CommandInterface $command, $request) { $host = $this->config['ip'] . ':' . $this->config['port']; } } - $path = $this->config['schema'].'://'. $host . $request->getUri()->getPath(); + $path = $this->config['scheme'].'://'. $host . $request->getUri()->getPath(); $uri = new Uri( $path ); $query = $request->getUri()->getQuery(); $uri = $uri->withQuery( $query ); diff --git a/src/Common.php b/src/Common.php index 1cc3246..1ba697a 100644 --- a/src/Common.php +++ b/src/Common.php @@ -24,6 +24,29 @@ function region_map($region) return $region; } +function processCosConfig($config) +{ + $config['region'] = !empty($config['region']) ? region_map($config['region']) : $config['region']; + $config['secretId'] = trim($config['credentials']['secretId']); + $config['secretKey'] = trim($config['credentials']['secretKey']); + $config['token'] = !empty($config['credentials']['token']) ? trim($config['credentials']['token']) : $config['credentials']['token']; + $config['appId'] = $config['credentials']['appId']; + $config['anonymous'] = $config['credentials']['anonymous']; + unset($config['credentials']); + + if (isset($config['schema'])) { + $config['scheme'] = $config['schema']; + unset($config['schema']); + } + + if (isset($config['locationWithSchema'])) { + $config['locationWithScheme'] = $config['locationWithSchema']; + unset($config['locationWithSchema']); + } + + return $config; +} + function encodeKey($key) { return str_replace('%2F', '/', rawurlencode($key)); diff --git a/src/ResultTransformer.php b/src/ResultTransformer.php index f4f1d5d..d9152dd 100644 --- a/src/ResultTransformer.php +++ b/src/ResultTransformer.php @@ -57,8 +57,8 @@ public function extraHeadersTransformer(CommandInterface $command, RequestInterf $result['Bucket'] = $command['Bucket']; } $result['Location'] = $request->getHeader('Host')[0] . $request->getUri()->getPath(); - if ($this->config['locationWithSchema']) { - $result['Location'] = $this->config['schema'] . '://' . $result['Location']; + if ($this->config['locationWithScheme']) { + $result['Location'] = $this->config['scheme'] . '://' . $result['Location']; } return $result; }