Osticket部门电子邮件ID

时间:2013-12-02 12:24:30

标签: php zend-framework soap

我想要获取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

通过这些详细信息,我如何从osticket的部门表中获取部门电子邮件ID i,e support@yourdomain.com

1 个答案:

答案 0 :(得分:0)

检查

$dept->getEmailId()

和这个

$dept->getEmail()