From 23ae667cf34446046357b324905e561edf59a1b7 Mon Sep 17 00:00:00 2001 From: sy-records <52o@qq52o.cn> Date: Thu, 14 Sep 2023 11:31:25 +0800 Subject: [PATCH] Fix typo [scheme] --- sample/ImageSearch.php | 2 +- sample/ImageSearchAdd.php | 2 +- sample/ImageSearchDelete.php | 2 +- sample/ImageSearchOpen.php | 2 +- sample/abortMultipartUpload.php | 2 +- sample/addHotLink.php | 2 +- sample/appendObject.php | 2 +- sample/bindCiService.php | 2 +- sample/blindWatermark.php | 2 +- sample/cancelInventoryTriggerJob.php | 2 +- sample/cancelLiveVideoAuditing.php | 2 +- sample/catchException.php | 2 +- sample/ciTransformation.php | 2 +- sample/closeImageSlim.php | 2 +- sample/closeOriginProtect.php | 2 +- sample/completeMultipartUpload.php | 2 +- sample/copy.php | 2 +- sample/copyObject.php | 2 +- sample/cosClient.php | 2 +- sample/createAiTranslationJobs.php | 2 +- sample/createAiWordsGeneralizeJobs.php | 2 +- sample/createBucket.php | 2 +- sample/createDocProcessJobs.php | 2 +- sample/createFileCompressJobs.php | 2 +- sample/createFileHashCodeJobs.php | 2 +- sample/createFileUncompressJobs.php | 2 +- sample/createFolder.php | 2 +- sample/createInventoryTriggerJob.php | 2 +- sample/createM3U8PlayListJobs.php | 2 +- sample/createMediaAnimationJobs.php | 2 +- sample/createMediaAnimationTemplate.php | 2 +- sample/createMediaConcatJobs.php | 2 +- sample/createMediaConcatTemplate.php | 2 +- sample/createMediaDigitalWatermarkJobs.php | 2 +- ...createMediaExtractDigitalWatermarkJobs.php | 2 +- sample/createMediaHighSpeedHdTemplate.php | 2 +- sample/createMediaJobs.php | 2 +- sample/createMediaNoiseReductionJobs.php | 2 +- sample/createMediaPicProcessJobs.php | 2 +- sample/createMediaPicProcessTemplate.php | 2 +- sample/createMediaQualityEstimateJobs.php | 2 +- sample/createMediaSDRtoHDRJobs.php | 2 +- sample/createMediaSegmentJobs.php | 2 +- sample/createMediaSmartCoverJobs.php | 2 +- sample/createMediaSmartCoverTemplate.php | 2 +- sample/createMediaSnapshotJobs.php | 2 +- sample/createMediaSnapshotTemplate.php | 2 +- sample/createMediaStreamExtractJobs.php | 2 +- sample/createMediaSuperResolutionJobs.php | 2 +- sample/createMediaSuperResolutionTemplate.php | 2 +- sample/createMediaTranscodeJobs.php | 2 +- sample/createMediaTranscodeProTemplate.php | 2 +- sample/createMediaTranscodeTemplate.php | 2 +- sample/createMediaVideoEnhanceJobs.php | 2 +- sample/createMediaVideoEnhanceTemplate.php | 2 +- sample/createMediaVideoMontageJobs.php | 2 +- sample/createMediaVideoMontageTemplate.php | 2 +- sample/createMediaVideoProcessJobs.php | 2 +- sample/createMediaVideoProcessTemplate.php | 2 +- sample/createMediaVideoTagJobs.php | 2 +- sample/createMediaVoiceSeparateJobs.php | 2 +- sample/createMediaVoiceSeparateTemplate.php | 2 +- sample/createMediaWatermarkTemplate.php | 2 +- sample/createMultipartUpload.php | 2 +- sample/createVoiceSpeechRecognitionJobs.php | 2 +- .../createVoiceSpeechRecognitionTemplate.php | 2 +- sample/createVoiceTtsJobs.php | 2 +- sample/createVoiceTtsTemplate.php | 2 +- sample/deleteBucket.php | 2 +- sample/deleteBucketCors.php | 2 +- sample/deleteBucketDomain.php | 2 +- sample/deleteBucketGuetzli.php | 2 +- sample/deleteBucketImageStyle.php | 2 +- sample/deleteBucketLifecycle.php | 2 +- sample/deleteBucketTagging.php | 2 +- sample/deleteBucketWebsite.php | 2 +- sample/deleteBuckets.php | 2 +- sample/deleteFolder.php | 2 +- sample/deleteObject.php | 2 +- sample/deleteObjectTagging.php | 2 +- sample/deleteWorkflow.php | 2 +- sample/describeInventoryTriggerJob.php | 2 +- sample/describeInventoryTriggerJobs.php | 2 +- sample/describeMediaJob.php | 2 +- sample/describeMediaJobs.php | 2 +- sample/describeMediaTemplates.php | 2 +- sample/describeWorkflow.php | 2 +- sample/detectAudio.php | 2 +- sample/detectDocument.php | 2 +- sample/detectImage.php | 2 +- sample/detectImages.php | 2 +- sample/detectLable.php | 2 +- sample/detectLiveVideo.php | 2 +- sample/detectText.php | 2 +- sample/detectVideo.php | 2 +- sample/detectVirus.php | 2 +- sample/detectWebpage.php | 2 +- sample/document2dstType.php | 2 +- sample/doesBucketExist.php | 2 +- sample/doesObjectExist.php | 2 +- sample/download.php | 2 +- sample/downloadFolder.php | 2 +- sample/fileJobs4Hash.php | 2 +- sample/getActionSequence.php | 2 +- sample/getAiBucketList.php | 2 +- sample/getAiQueueList.php | 2 +- sample/getBlindWatermark.php | 2 +- sample/getBucketAccelerate.php | 2 +- sample/getBucketAcl.php | 2 +- sample/getBucketCors.php | 2 +- sample/getBucketDomain.php | 2 +- sample/getBucketGuetzli.php | 2 +- sample/getBucketImageStyle.php | 2 +- sample/getBucketInventory.php | 2 +- sample/getBucketLifecycle.php | 2 +- sample/getBucketLogging.php | 2 +- sample/getBucketReferer.php | 2 +- sample/getBucketTagging.php | 2 +- sample/getBucketWebsite.php | 2 +- sample/getCiService.php | 2 +- sample/getDescribeDocProcessBuckets.php | 2 +- sample/getDescribeDocProcessJob.php | 2 +- sample/getDescribeDocProcessJobs.php | 2 +- sample/getDescribeDocProcessQueues.php | 2 +- sample/getDescribeMediaBuckets.php | 2 +- sample/getDescribeMediaQueues.php | 2 +- sample/getDescribeMediaVoiceSeparateJob.php | 2 +- sample/getDetectAudioResult.php | 2 +- sample/getDetectDocumentResult.php | 2 +- sample/getDetectImageResult.php | 2 +- sample/getDetectTextResult.php | 2 +- sample/getDetectVideoResult.php | 2 +- sample/getDetectVirusResult.php | 2 +- sample/getDetectWebpageResult.php | 2 +- sample/getFileCompressResult.php | 2 +- sample/getFileHashCodeResult.php | 2 +- sample/getFileProcessQueueList.php | 2 +- sample/getFileUncompressResult.php | 2 +- sample/getHotLink.php | 2 +- sample/getImageSlim.php | 2 +- sample/getLiveCode.php | 2 +- sample/getMediaInfo.php | 2 +- sample/getObject.php | 2 +- .../getObjectSensitiveContentRecognition.php | 2 +- sample/getObjectTagging.php | 2 +- sample/getObjectUrl.php | 2 +- sample/getObjectWithoutSign.php | 2 +- sample/getOriginProtect.php | 2 +- sample/getPicBucketList.php | 2 +- sample/getPicQueueList.php | 2 +- sample/getPresignedUrl.php | 2 +- sample/getPrivateM3U8.php | 2 +- sample/getSnapshot.php | 2 +- sample/getWorkflowInstance.php | 2 +- sample/getWorkflowInstances.php | 2 +- sample/headBucket.php | 2 +- sample/headObject.php | 2 +- sample/iDCardOCR.php | 2 +- sample/imageAssessQualityProcess.php | 2 +- sample/imageAve.php | 2 +- sample/imageDetectCarProcess.php | 2 +- sample/imageDetectFace.php | 2 +- sample/imageExif.php | 2 +- sample/imageFaceEffect.php | 2 +- sample/imageInfo.php | 2 +- sample/imageMogr.php | 2 +- sample/imageProcess.php | 2 +- sample/imageProcessBright.php | 2 +- sample/imageProcessChannel.php | 2 +- sample/imageProcessContrast.php | 2 +- sample/imageProcessCrop.php | 2 +- sample/imageProcessFormat.php | 2 +- sample/imageProcessFormatAvif.php | 2 +- sample/imageProcessFormatHeif.php | 2 +- sample/imageProcessFormatSvgc.php | 2 +- sample/imageProcessFormatTpg.php | 2 +- sample/imageProcessFormatWebp.php | 2 +- sample/imageProcessGaussianBlur.php | 2 +- sample/imageProcessGrayscale.php | 2 +- sample/imageProcessImageView.php | 2 +- sample/imageProcessQuality.php | 2 +- sample/imageProcessRotate.php | 2 +- sample/imageProcessSharpen.php | 2 +- sample/imageProcessSizeLimit.php | 2 +- sample/imageProcessStrip.php | 2 +- sample/imageProcessThumbnail.php | 2 +- sample/imageProcessWatermarkImage.php | 2 +- sample/imageProcessWatermarkText.php | 2 +- sample/imageRepairProcess.php | 2 +- sample/imageView.php | 2 +- sample/imageWatermark.php | 2 +- sample/listBuckets.php | 2 +- sample/listMultipartUploads.php | 2 +- sample/listObjects.php | 2 +- sample/listParts.php | 2 +- sample/openAiService.php | 2 +- sample/openFileProcessService.php | 2 +- sample/openImageSlim.php | 2 +- sample/openOriginProtect.php | 2 +- sample/opticalOcrRecognition.php | 2 +- sample/picOperations.php | 2 +- sample/putBlindWatermark.php | 2 +- sample/putBucketAccelerate.php | 2 +- sample/putBucketAcl.php | 2 +- sample/putBucketCors.php | 2 +- sample/putBucketDomain.php | 2 +- sample/putBucketGuetzli.php | 2 +- sample/putBucketImageStyle.php | 2 +- sample/putBucketInventory.php | 2 +- sample/putBucketLifecycle.php | 2 +- sample/putBucketLogging.php | 2 +- sample/putBucketReferer.php | 2 +- sample/putBucketTagging.php | 2 +- sample/putBucketWebsite.php | 2 +- sample/putImageStyle.php | 2 +- sample/putObject.php | 2 +- sample/putObjectTagging.php | 2 +- sample/putQrcode.php | 2 +- sample/qrcode.php | 2 +- sample/qrcodeGenerate.php | 2 +- sample/restoreObject.php | 2 +- sample/selectObjectContent.php | 2 +- sample/textWatermark.php | 2 +- sample/trafficLimit.php | 2 +- sample/triggerWorkflow.php | 2 +- sample/unBindCiService.php | 2 +- sample/updateAiQueue.php | 2 +- sample/updateDocProcessQueue.php | 2 +- sample/updateFileProcessQueue.php | 2 +- sample/updateMediaAnimationTemplate.php | 2 +- sample/updateMediaConcatTemplate.php | 2 +- sample/updateMediaHighSpeedHdTemplate.php | 2 +- sample/updateMediaPicProcessTemplate.php | 2 +- sample/updateMediaQueue.php | 2 +- sample/updateMediaSmartCoverTemplate.php | 2 +- sample/updateMediaSnapshotTemplate.php | 2 +- sample/updateMediaSuperResolutionTemplate.php | 2 +- sample/updateMediaTranscodeProTemplate.php | 2 +- sample/updateMediaTranscodeTemplate.php | 2 +- sample/updateMediaVideoEnhanceTemplate.php | 2 +- sample/updateMediaVideoMontageTemplate.php | 2 +- sample/updateMediaVideoProcessTemplate.php | 2 +- sample/updateMediaVoiceSeparateTemplate.php | 2 +- sample/updateMediaWatermarkTemplate.php | 2 +- sample/updatePicQueue.php | 2 +- .../updateVoiceSpeechRecognitionTemplate.php | 2 +- sample/updateVoiceTtsTemplate.php | 2 +- sample/upload.php | 2 +- sample/uploadFolder.php | 2 +- sample/uploadPart.php | 2 +- src/Client.php | 54 ++++++++++--------- src/CommandToRequestTransformer.php | 16 +++--- src/Common.php | 23 ++++++++ src/ResultTransformer.php | 4 +- 254 files changed, 313 insertions(+), 284 deletions(-) diff --git a/sample/ImageSearch.php b/sample/ImageSearch.php index 365a2015..f980c8ce 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 0f27c1d2..0d00377f 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 afd1e981..9e74193d 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 08086da6..a8d42ca6 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 cd89d96a..739bcc8b 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 fdb7b16f..dd263f14 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 6320ba04..c676fea7 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 fd888e82..4d75fb7e 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 0ed54195..b4e242fd 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 2bf71049..e132a2a0 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 e417c8dd..a6547acb 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 ea05fcc2..686432c9 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 6b85a695..8b375afd 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 5b2e3975..e312ef3c 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 815181be..de533b5a 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 7495bca8..192823f4 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 5300bcbf..67d89369 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 3e4d85a5..38f14c51 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 e5d93663..d6e37906 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 0937d57f..8eac363a 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 c94fb290..174d0f06 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 542290cf..98df2992 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 ec441fa6..c6ed4dd6 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 afbca6e5..7f2612b9 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 f7e4dd6a..ca755860 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 3a920d79..d84f8809 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 caf645e9..f7586726 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 5ce099f5..52ac5e63 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 0f041e8d..508ab743 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 cd63d355..12a451fa 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 6154a587..941cbe6c 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 ea8da091..68d6c253 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 4075a2d4..4220bf4d 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 0208ad3c..55b73a07 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 fb005a08..0b6219fb 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 dfff76df..95889b81 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 9895cefe..e0a897aa 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 6e52fc7b..83b4c416 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 79a411b5..d0268386 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 a042f1cf..8fe5f196 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 e1c6f087..32663b94 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 6dc4bda9..79a7a3bc 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 00ec3aa9..ad98a949 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 574e16fc..c03d4355 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 53f97911..2a976c32 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 669a43e5..61a17d19 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 0af1c5cc..b7002a14 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 ec44ca65..94e6cdb3 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 c5668854..53cc79e8 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 c77313f5..6caf02d3 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 98453148..9a0aa6ba 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 24d8f1e8..bb41cd0d 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 ab9d9829..53306523 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 d90fd136..2a117356 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 d18de858..6c4d37a8 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 7af63ae7..e7cd4a0f 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 64028923..c1c95a86 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 8826102b..9f12f3b9 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 1afae6fa..9f4c11a5 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 19e414ff..b626ac0e 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 651fdf3a..b7c8d8d1 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 c57053f9..26e3522f 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 79aa1fc4..ad9f6ccf 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 72cff133..20d1d28e 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 5cdd56da..7176ae09 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 9524b883..fd13b141 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 b611fe21..91be274a 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 bf3cc671..bf2aaca0 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 5c67985f..dd7a1c1f 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 dbd8827c..f672d22a 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 8821069f..a86259a6 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 15b99895..b8a4b8df 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 744e9885..6c8682fd 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 117ef9cd..65dc273a 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 110f0d9b..2ce52be1 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 2e90caaf..6ba15cab 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 928d085c..f91bcfe5 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 ecd44ccd..30f41975 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 940b5230..2e613cd1 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 5ac8cd58..4b98f027 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 4bd28002..bcc2613f 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 2ce252b4..b60cdc43 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 fca96817..72091a17 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 7f082863..b2aadee4 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 888ab691..b7efa8df 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 2aece082..e2dbb5cc 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 528f2b4a..e346e1ff 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 65256902..b29020ea 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 92d27790..c2a87e1b 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 672e8d68..e76750ec 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 42ddc4c7..b031c944 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 55aa6fbd..d9df505c 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 2f6c35cc..171da0a0 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 d62b91dd..9d454962 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 973788af..6c35911c 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 5f54523b..54ac7c01 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 3bed692b..972029e8 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 14d53327..536af1a9 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 ef0a6149..ca7d6f82 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 3c3971bc..5cf3e7df 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 64b37be9..3a6bb903 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 6944adf3..fbc06f44 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 655fe84c..3e9b773b 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 1cb5f8dc..424809cd 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 e063a658..55162c6a 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 6e41522e..362ee99a 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 bac73d8d..ec4437f4 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 3023b829..469b20f9 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 9e9d8c63..d6ee3086 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 20aa61b0..539c4b5a 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 c4127ce4..ed30d480 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 01a0f5ca..f434ba38 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 d41b3f2a..1f85a939 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 7a6a066b..b1982fa9 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 38fc5b98..7a567515 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 ab1f35c4..6634af08 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 96dd058c..021ef427 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 d6be227d..2bb65e1e 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 64ae21f5..2e1f41eb 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 694cc671..0a21d59a 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 6bb001bc..017ebfe5 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 37f0280c..6aa809fd 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 54aa18d2..28afdcde 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 06a1b052..dbd0006d 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 c33c4eb0..03360d9a 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 2aeb8678..e114b384 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 82ab9d6e..199bb726 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 ab9a242a..da2e4752 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 0a2145e0..bbe326e1 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 399a75e8..df88cf5c 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 fef90249..6839166c 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 3963493f..a713ebcf 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 acd8a1ef..a755a9db 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 6c938f41..0e02c579 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 d7a40af5..8390c691 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 0c8012b0..a41d9be0 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 a2af4c46..99c6f05f 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 dc29785a..361487c2 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 48f7749b..b32a4870 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 ad40ba8c..f14e807d 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 19ddee67..970d6645 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 a42c6abf..29d44c56 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 89a0098f..d5101d2c 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 e8b5caf0..9c9151f1 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 283c95b3..9795806c 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 c295d351..d8467671 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 74fa63e5..63b20d87 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 821fcbdc..a4b64800 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 f24aa01e..1b6cfb7f 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 64d237e3..8d25a1c9 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 46d406e5..4fd0f3eb 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 8c0aa664..92e57c21 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 aa2f035f..1ea785ef 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 7de15eea..da1cd758 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 ab76d09a..e25778c1 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 636325e4..1551561b 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 2e60251c..38425dd7 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 9f9a0964..1642c1bc 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 04044620..8c28f002 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 3738fc13..12269c16 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 6d30a46a..c22146c3 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 06fb08d2..8b2e5753 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 8fa0f2b6..707780db 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 a022fe21..a62af082 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 18ca78ad..5efa048a 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 f415d1c3..7299e439 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 ae9127d3..69dd68d4 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 90bc4750..740038e8 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 2039c95c..e0ba9e4f 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 83ca0b08..7724745a 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 ede0c204..974464af 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 dcae577b..c6f95baf 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 84dba8ee..34a1a354 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 30e8b1c6..d275fbf9 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 d09e9200..dacd914f 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 68dd49cc..5b643123 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 6f74ec9d..32e7ec6a 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 2fe76a22..8db4fddf 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 6b7f7292..1ce15328 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 342222e4..ae9d875d 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 f6d3d220..dd7e8b9a 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 050a2e40..016a889b 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 1a478077..8440c7e4 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 ad666a4d..de6f4f88 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 b36e0894..76071d7d 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 fb8a27c7..0dd2fb58 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 5f5d9e98..83916f2b 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 fd28656f..f5ba72ae 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 dc65b8fd..90b4e7a1 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 b8f50070..c261e23e 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 93bd167f..a7a5f905 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 73efd6c8..17aeb104 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 b9fb7359..d10c66ba 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 12544751..91a4e1a2 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 3384e0d3..92ada0a0 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 08fd22bc..d015a382 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 b862bb3b..7c5c8722 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 6e7334c4..c4b990d6 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 39c2076f..f80910bd 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 373deeef..ba10cf7c 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 0e9ea134..7d26e55a 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 2c8932aa..22dd7ec4 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 0bebe05d..18888c86 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 3adcbf67..7e453218 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 762e56bb..6f4b4f3f 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 3a3ea15f..7bfa7410 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 465915ac..bf4c3208 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 4b75eda8..de81bce5 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 ee56658b..a5607086 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 58d9da38..f0e4f57e 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 c9bf8304..6850b379 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 64ba0bcb..fd7d4aff 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 65d96661..2622ee39 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 f1b91f68..b2521ad5 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 250730ae..2fb92af9 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 8a66c4c2..ccfbbe71 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 dc05fb44..0843632e 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 dafc4fd8..5a0eace7 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 32d35e7d..eb04c1d5 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 078dcf3b..ed604b1e 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 cfa21ccc..ac6a1aad 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 3c6f5a06..e204c222 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 9e0e0a69..ea1aa472 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 08c60956..5e20ea7b 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 91a70626..8147399c 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 03b42f53..567c0ebf 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 6757d57e..d517371c 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 a7f7e1ed..f7310d13 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 3e803af2..753812b5 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 b7de25cf..c8a71aab 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 df031879..d791d9df 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 d4d52f28..b0574828 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 00b884d9..e3f871d7 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 eff1f62f..24d1a345 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 d76490d9..7789d287 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 19989791..86d63563 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 a6cbad3c..0101225f 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 be2119a3..1ba0070a 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 c011b9d2..9a9bd39a 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 1af06d43..0216bc69 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 647088e3..bfdbdc62 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 02a6caa8..8ba03cf7 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 b754d6af..cb51873f 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 cdfe584a..7010b992 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 52555dae..cf116342 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 b54d7d2a..b037e82f 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 9c3f846d..d57ee319 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 19dc921a..9a9cf13b 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 65186cd4..09f87acb 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 34d055e7..b915aea2 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 10a30a38..967dcfd5 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 d01c0be7..defc9aa3 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 1cc32464..1ba697a1 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 f4f1d5d1..d9152ddf 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; }