1234567891011121314151617181920212223242526272829303132 |
- <?php
- require dirname(__FILE__, 2) . '/vendor/autoload.php';
- $secretId = "SECRETID";
- $secretKey = "SECRETKEY";
- $region = "ap-beijing";
- $token = "COS_TMPTOKEN";
- $cosClient = new Qcloud\Cos\Client(
- array(
- 'region' => $region,
- 'scheme' => 'https',
- 'timeout' => 10,
- 'connect_timeout' => 10,
- 'ip' => '',
- 'port' => '',
- 'endpoint' => '',
- 'domain' => '',
- 'proxy' => '',
- 'retry' => 10,
- 'userAgent' => '',
- 'allow_redirects' => false,
- 'credentials'=> array(
- 'secretId' => $secretId,
- 'secretKey' => $secretKey,
- 'token' => $token,
- 'anonymous' => true,
- ),
- 'timezone' => 'PRC',
- 'locationWithScheme' => true
- )
- );
|