Skip to content

Commit 031fdeb

Browse files
committed
Added info on the NotificationSettingsApi (#143).
1 parent 0e6a72a commit 031fdeb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
1111
```java
1212
dependencies {
1313
...
14-
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.8.3'
14+
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.8.4'
1515
}
1616
```
1717

@@ -20,7 +20,7 @@ dependencies {
2020
<dependency>
2121
<groupId>org.gitlab4j</groupId>
2222
<artifactId>gitlab4j-api</artifactId>
23-
<version>4.8.3</version>
23+
<version>4.8.4</version>
2424
</dependency>
2525
```
2626

@@ -146,6 +146,7 @@ The API has been broken up into sub APIs classes to make it easier to learn and
146146
&nbsp;&nbsp;[MilestonesApi](#milestonesapi)<br/>
147147
&nbsp;&nbsp;[NamespaceApi](#namespaceapi)<br/>
148148
&nbsp;&nbsp;[NotesApi](#notesapi)<br/>
149+
&nbsp;&nbsp;[NotificationSettingsApi](#notificationsettingsapi)<br/>
149150
&nbsp;&nbsp;[PipelineApi](#pipelineapi)<br/>
150151
&nbsp;&nbsp;[ProjectApi](#projectapi)<br/>
151152
&nbsp;&nbsp;[RepositoryApi](#repositoryapi)<br/>
@@ -227,7 +228,12 @@ List<Namespace> namespaces = gitLabApi.getNamespaceApi().findNamespaces("foobar"
227228
#### NotesApi
228229
```java
229230
// Get a list of the issues's notes for project ID 1234, issue IID 1
230-
List<Note> notes = getNotes(1234, 1);
231+
List<Note> notes = gitLabApi.getNotesApi().getNotes(1234, 1);
232+
```
233+
#### NotificationSettingsApi
234+
```java
235+
// Get the current global notification settings
236+
NotificationSettings settings = gitLabApi.getNotificationSettingsApi().getGlobalNotificationSettings();
231237
```
232238

233239
#### PipelineApi

0 commit comments

Comments
 (0)