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
40ba792e
Commit
40ba792e
authored
Mar 27, 2014
by
Greg Messner
Browse files
Added SessionApi info.
parent
413f1c2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
40ba792e
...
...
@@ -22,6 +22,7 @@ GroupApi
MergeRequestApi
ProjectApi
RepositoryApi
SessionApi
UserApi
```
...
...
@@ -55,6 +56,12 @@ RepositoryApi:
List
<
Branch
>
branches
=
gitLabApi
.
getRepositoryApi
().
getBranches
();
```
SessionApi:
```
java
// Log in to the GitLab server and get the session info
getLabApi
.
getSessionApi
().
login
(
"your-username"
,
"your-email"
,
"your-password"
);
```
UserApi:
```
java
// Get the User info for user_id 1
...
...
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