Unverified Commit ffd05eb4 authored by Helmo's avatar Helmo
Browse files

Extend example to show Lookup by pattern

parent 5bbec2b9
......@@ -17,9 +17,13 @@ try {
//* Set the function parameters.
$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);
// Lookup by pattern gives an array of records.
$mail_users_array = $client->mail_user_get($session_id, array('email' => '%@example.com'));
if($client->logout($session_id)) {
echo 'Logged out.<br />';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment