endpoint, $this->version, $credential, $region, $profile); } public function returnResponse($action, $response) { $respClass = "TencentCloud" . "\\" . ucfirst("faceid") . "\\" . "V20180301\\Models" . "\\" . ucfirst($action) . "Response"; $obj = new $respClass(); $obj->deserialize($response); return $obj; } }