setReqMethod("POST"); // post请求(默认为post请求) $httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒) $httpProfile->setEndpoint("ess.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入) // 实例化一个client选项,可选的,没有特殊需求可以跳过 $clientProfile = new ClientProfile(); $clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256) $clientProfile->setHttpProfile($httpProfile); $client = new EssClient($cred, "ap-guangzhou", $clientProfile); $req = new DescribeFlowTemplatesRequest(); $userInfo = new UserInfo(); $userInfo->setUserId("********************************"); $req->setOperator($userInfo); $resp = $client->DescribeFlowTemplates($req); // 输出json格式的字符串回包 print_r($resp->toJsonString()); } catch (TencentCloudSDKException $e) { echo $e; }