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
13822039
Unverified
Commit
13822039
authored
May 09, 2018
by
Greg Messner
Committed by
GitHub
May 09, 2018
Browse files
Updated for release 4.8.18
parent
3ce2e4e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
13822039
...
@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
...
@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
```
java
```
java
dependencies
{
dependencies
{
...
...
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.8
.
1
7
'
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.8
.
1
8
'
}
}
```
```
...
@@ -20,7 +20,7 @@ dependencies {
...
@@ -20,7 +20,7 @@ dependencies {
<dependency>
<dependency>
<groupId>
org.gitlab4j
</groupId>
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<artifactId>
gitlab4j-api
</artifactId>
<version>
4.8.1
7
</version>
<version>
4.8.1
8
</version>
</dependency>
</dependency>
```
```
...
@@ -320,4 +320,13 @@ List<SystemHook> hooks = gitLabApi.getSystemHooksApi().getSystemHooks();
...
@@ -320,4 +320,13 @@ List<SystemHook> hooks = gitLabApi.getSystemHooksApi().getSystemHooks();
```
java
```
java
// Get the User info for user_id 1
// Get the User info for user_id 1
User
user
=
gitLabApi
.
getUserApi
().
getUser
(
1
);
User
user
=
gitLabApi
.
getUserApi
().
getUser
(
1
);
// Create a new user with no password who will recieve a reset password email
User
userConfig
=
new
User
()
.
withEmail
(
"jdoe@example.com"
)
.
withName
(
"Jane Doe"
)
.
withUsername
(
"jdoe"
);
String
password
=
null
;
boolean
sendResetPasswordEmail
=
true
;
gitLabApi
.
getUserApi
().
createUser
(
userConfig
,
password
,
sendResetPasswordEmail
);
```
```
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