我想获取ost_department email_id
我使用了以下方法
$args1 = array( 'username' => $this->osticket->username,
'password' => $this->osticket->password,
'departmentId' => $dept->id
);
try {
$getmail = $osticket->__call('ostDepartment.getInfo',$args1);
echo '<pre>', print_r($getmail);exit;
} catch(SoapFault $e) {
$error = true;
}
这是我的回波的输出
stdClass Object
(
[id] => 3
[name] => bcod
[email] => Support
[isPublic] => 1
)
1
通过这些详细信息,我如何获取部门电子邮件id I,esupport@yourdomain.com来自osticket 的部门表
检查此
$dept->getEmailId()
和这个
$dept->getEmail()