Commit 656f78a2 authored by Tim Olshansky's avatar Tim Olshansky

Merge pull request #81 from wikiwi/api-user

Add method to return API User
parents 7b72baf6 d9332b05
......@@ -103,6 +103,14 @@ public class GitlabAPI {
return Arrays.asList(users);
}
/**
* Return API User
*/
public GitlabUser getUser() throws IOException {
String tailUrl = GitlabUser.USER_URL;
return retrieve().to(tailUrl, GitlabUser.class);
}
public GitlabUser getUser(Integer userId) throws IOException {
String tailUrl = GitlabUser.URL + "/" + userId;
return retrieve().to(tailUrl, GitlabUser.class);
......
Markdown is supported
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