Skip to content

Commit d65f153

Browse files
authored
Merge pull request GitLabPHP#177 from ariep/master
Add user lookup by username
2 parents 7716098 + cef47af commit d65f153

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Gitlab/Api/Users.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ public function all($active = null, $page = 1, $per_page = self::PER_PAGE)
1717
));
1818
}
1919

20+
/**
21+
* @param string $username
22+
* @return mixed
23+
*/
24+
public function lookup($username)
25+
{
26+
return $this->get('users', array(
27+
'username' => $username
28+
));
29+
}
30+
2031
/**
2132
* @param string $query
2233
* @param null|true $active

0 commit comments

Comments
 (0)