Skip to content

Commit 6db9b9f

Browse files
committed
Added info on ApplicationsApi (#338).
1 parent 7107e9d commit 6db9b9f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To utilize GitLab4J™ API in your Java project, simply add the following de
1111
```java
1212
dependencies {
1313
...
14-
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.10.9'
14+
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.10.10'
1515
}
1616
```
1717

@@ -22,7 +22,7 @@ dependencies {
2222
<dependency>
2323
<groupId>org.gitlab4j</groupId>
2424
<artifactId>gitlab4j-api</artifactId>
25-
<version>4.10.9</version>
25+
<version>4.10.10</version>
2626
</dependency>
2727
```
2828

@@ -218,6 +218,7 @@ The following is a list of the available sub APIs along with a sample use of eac
218218

219219
### Available Sub APIs
220220
------------------
221+
&nbsp;&nbsp;[AoolicationsApi](#applicationsapi)<br/>
221222
&nbsp;&nbsp;[AwardEmojiApi](#awardemojiapi)<br/>
222223
&nbsp;&nbsp;[BoardsApi](#boardsapi)<br/>
223224
&nbsp;&nbsp;[CommitsApi](#commitsapi)<br/>
@@ -253,6 +254,13 @@ The following is a list of the available sub APIs along with a sample use of eac
253254
### Sub API Examples
254255
----------------
255256

257+
#### ApplicationsApi
258+
```java
259+
// Add an OAUTH Application to GitLab
260+
ApplicationScope[] scopes = {ApplicationScope.SUDO, ApplicationScope.PROFILE};
261+
gitLabApi.getApplicationsApi().createApplication("My OAUTH Application", "https//example.com/myapp/callback", scopes);
262+
```
263+
256264
#### AwardEmojiApi
257265
```java
258266
// Get a list of AwardEmoji belonging to the specified issue (group ID = 1, issues IID = 1)

0 commit comments

Comments
 (0)