PHP code example of tencentcloudbase / tencentcloud-client-php
1. Go to this page and download the library: Download tencentcloudbase/tencentcloud-client-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tencentcloudbase / tencentcloud-client-php example snippets
use TencentCloudClient\TCClient;
use TencentCloudClient\Credential;
$secretId = "Your SecretId";
$secretKey = "Your SecretKey";
$credential = new Credential($secretId, $secretKey);
$client = new TCClient(
"tcb.tencentcloudapi.com",
"2018-06-08",
$credential,
""
);
$result = $client->request("DescribeEnvs");