12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- require dirname(__FILE__, 2) . '/vendor/autoload.php';
- $secretId = "SECRETID";
- $secretKey = "SECRETKEY";
- $region = "ap-beijing";
- $cosClient = new Qcloud\Cos\Client(
- array(
- 'region' => $region,
- 'scheme' => 'https',
- 'credentials'=> array(
- 'secretId' => $secretId,
- 'secretKey' => $secretKey)));
- try {
-
- $result = $cosClient->createMediaVideoProcessTemplate(array(
- 'Bucket' => 'examplebucket-125000000',
- 'Tag' => 'VideoProcess',
- 'Name' => 'VideoProcess-Template-Name',
- 'ColorEnhance' => array(
- 'Enable' => '',
- 'Contrast' => '',
- 'Correction' => '',
- 'Saturation' => '',
- ),
- 'MsSharpen' => array(
- 'Enable' => '',
- 'SharpenLevel' => '',
- ),
- ));
-
- print_r($result);
- } catch (\Exception $e) {
-
- echo($e);
- }
|