Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
-
GSoC 2019. Coding Phase 1
Description
Unable to access GitLab API classes with private access token or username/password credentials. Raised an issue in the GitLab API repository. Waiting for feedback from the repository author.
This issue was resolved in the issue thread on gitlab api repository. I was using the wrong server urls. In case of using the correct server url, the wrong method was called. To get the current user to verify that GitLab API has been correctly setup.
GitLabApi gitLabApi = new GitLabApi("https://gitlab.com", "xxxx");
{{ User currentUser = gitLabApi.getUserApi().getCurrentUser();}}
{{ System.out.println(currentUser.getUsername());}}