Commit 83184f99 authored by Greg Messner's avatar Greg Messner Committed by GitHub
Browse files

Added EventsApi info.

parent 26042d7d
...@@ -79,6 +79,7 @@ Available Sub APIs ...@@ -79,6 +79,7 @@ Available Sub APIs
------------------ ------------------
``` ```
CommitsApi CommitsApi
EventsApi
GroupApi GroupApi
JobApi JobApi
MergeRequestApi MergeRequestApi
...@@ -105,6 +106,15 @@ Date until = new Date(); // now ...@@ -105,6 +106,15 @@ Date until = new Date(); // now
List<Commit> commits = gitLabApi.getCommitsApi().getCommits(1234, "new-feature", since, until); List<Commit> commits = gitLabApi.getCommitsApi().getCommits(1234, "new-feature", since, until);
``` ```
EventsApi:
```java
// Get a list of Events for the authenticated user
Date after = new Date(0); // After Eposc
Date before = new Date(); // Before now
List<Event> events = gitLabApi.getEventsApi().getAuthenticatedUserEvents(null, null, before, after, DESC);
assertNotNull(events);
```
GroupApi: GroupApi:
```java ```java
// Get a list of groups that you have access to // Get a list of groups that you have access to
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment