Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
83184f99
Commit
83184f99
authored
Aug 12, 2017
by
Greg Messner
Committed by
GitHub
Aug 12, 2017
Browse files
Added EventsApi info.
parent
26042d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
83184f99
...
...
@@ -79,6 +79,7 @@ Available Sub APIs
------------------
```
CommitsApi
EventsApi
GroupApi
JobApi
MergeRequestApi
...
...
@@ -105,6 +106,15 @@ Date until = new Date(); // now
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:
```
java
// Get a list of groups that you have access to
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment