Skip to content

Commit 83184f9

Browse files
authored
Added EventsApi info.
1 parent 26042d7 commit 83184f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Available Sub APIs
7979
------------------
8080
```
8181
CommitsApi
82+
EventsApi
8283
GroupApi
8384
JobApi
8485
MergeRequestApi
@@ -105,6 +106,15 @@ Date until = new Date(); // now
105106
List<Commit> commits = gitLabApi.getCommitsApi().getCommits(1234, "new-feature", since, until);
106107
```
107108

109+
EventsApi:
110+
```java
111+
// Get a list of Events for the authenticated user
112+
Date after = new Date(0); // After Eposc
113+
Date before = new Date(); // Before now
114+
List<Event> events = gitLabApi.getEventsApi().getAuthenticatedUserEvents(null, null, before, after, DESC);
115+
assertNotNull(events);
116+
```
117+
108118
GroupApi:
109119
```java
110120
// Get a list of groups that you have access to

0 commit comments

Comments
 (0)