我是 Five9 的新手,我在 GitHub ( https://github.com/kielerrr/Five9 ) 中获得了一些示例代码,我查看了代码并将凭据传递给 API,但出现以下错误
“致命错误:未捕获的错误:在 C:\xampp\htdocs\Five9-master\includes\Five9.php:20 中找不到类 'SoapClient' 堆栈跟踪:#0 C:\xampp\htdocs\Five9-master\contacts\ getContactRecords.php(12): f9->__construct() #1 {main} 在第 20 行的 C:\xampp\htdocs\Five9-master\includes\Five9.php 中抛出"
$wsdl_five9 = "https://api.five9.com/wsadmin/v4/AdminWebService?wsdl&user=User_ID";
//$wsdl_five9 = "https://api.five9.com/wsadmin/v4/AdminWebService?wsdl";
try {
$soap_options = array('login' => 'uer_name', 'password' => 'mypassword', 'trace' => true);
$this->_connection = new SoapClient($wsdl_five9, $soap_options);//20th line
} catch (Exception $e) {
$error_message = $e->getMessage();
echo $error_message."ERROR";
exit;
}
请帮我解决这个...