Remote API: mail_domain_get_by_user
Is it Possible to Include this Function in the remote API, it would be make it easier to get all active Services and Domains by a User via your API:
remotening.ing.php:3644
public function mail_domain_get_by_user($session_id, $sys_userid) {
global $app;
if(!$this->checkPerm($session_id, 'mail_domain_get_by_domain')) {
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
return false;
}
if (!empty($sys_userid)) {
$domain = $app->db->quote($domain);
sql = "SELECT * FROM mail_domain WHERE sys_userid = '
sys_userid'";
$result = $app->db->queryAllRecords($sql);
return $result;
}
return false;
}
**
web/mail/lib/remote.conf.php:3 $function_list['mail_domain_get,mail_domain_add,mail_domain_update,mail_domain_delete,mail_domain_set_status,mail_domain_get_by_domain,mail_domain_get_by_user'] = 'Mail domain functions'; **