Commit d9332b05 authored by Chi Vinh Le's avatar Chi Vinh Le

Add method to return API User

parent 7b72baf6
......@@ -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