From 6db9b9f98421e27b237373eafb183824a4b358bd Mon Sep 17 00:00:00 2001 From: Greg Messner Date: Sat, 4 May 2019 14:55:55 -0700 Subject: [PATCH] Added info on ApplicationsApi (#338). --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a2bfada0..ce41ed71 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ To utilize GitLab4J™ API in your Java project, simply add the following de ```java dependencies { ... - compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.10.9' + compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.10.10' } ``` @@ -22,7 +22,7 @@ dependencies { org.gitlab4j gitlab4j-api - 4.10.9 + 4.10.10 ``` @@ -218,6 +218,7 @@ The following is a list of the available sub APIs along with a sample use of eac ### Available Sub APIs ------------------ +  [AoolicationsApi](#applicationsapi)
  [AwardEmojiApi](#awardemojiapi)
  [BoardsApi](#boardsapi)
  [CommitsApi](#commitsapi)
@@ -253,6 +254,13 @@ The following is a list of the available sub APIs along with a sample use of eac ### Sub API Examples ---------------- +#### ApplicationsApi +```java +// Add an OAUTH Application to GitLab +ApplicationScope[] scopes = {ApplicationScope.SUDO, ApplicationScope.PROFILE}; +gitLabApi.getApplicationsApi().createApplication("My OAUTH Application", "https//example.com/myapp/callback", scopes); +``` + #### AwardEmojiApi ```java // Get a list of AwardEmoji belonging to the specified issue (group ID = 1, issues IID = 1) -- GitLab