Skip to content

Commit

Permalink
add full output to FindUser example. refs #19
Browse files Browse the repository at this point in the history
  • Loading branch information
nealio82 committed Apr 5, 2016
1 parent dbe8550 commit 55900ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions documentation/Cookbook/CommandLine/FindUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
$name_array = explode(" ", $name);

$users = $api_client->read(new Management\User([
'q' => "first_name=:" . $name_array[0] . "&last_name=:" . $name_array[1] . "&type==INTERNAL"
'q' => "first_name=:" . $name_array[0] . "&last_name=:" . $name_array[1] . "&type==INTERNAL",
'full' => '*'
]
), new JSONResponseDecoder());

Expand All @@ -52,8 +53,9 @@

foreach ($users->data() AS $user) {
echo $user->id . " - ";
echo $name . " - ";
echo $user->name;
echo $user->first_name . " - ";
echo $user->last_name . " - ";
echo $user->email;
echo "\n";
}

Expand Down

0 comments on commit 55900ff

Please sign in to comment.