Skip to content
Snippets Groups Projects
Commit e8c9f64d authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch '6333-mail_user_get_all_by_domain' into 'develop'

Resolve "API to get mail user details for all account that belong to a domain"

Closes #6333

See merge request ispconfig/ispconfig3!1600
parents bb50b985 ffd05eb4
No related branches found
No related tags found
No related merge requests found
...@@ -17,9 +17,13 @@ try { ...@@ -17,9 +17,13 @@ try {
//* Set the function parameters. //* Set the function parameters.
$mailuser_id = 1; $mailuser_id = 1;
$app = $client->mail_user_get($session_id, $mailuser_id); // Lookup by primary key, gets back a single record.
$mail_user = $client->mail_user_get($session_id, $mailuser_id);
print_r($mail_user);
print_r($app); // Lookup by pattern gives an array of records.
$mail_users_array = $client->mail_user_get($session_id, array('email' => '%@example.com'));
print_r($mail_user_array);
if($client->logout($session_id)) { if($client->logout($session_id)) {
echo 'Logged out.<br />'; echo 'Logged out.<br />';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment