@Immutable @Loggable(value=1) public final class MkGithub extends Object implements Github
This is how you use it:
GitHub gitHub = new MkGithub("username");
Repos.RepoCreate create = new Repos.RepoCreate("dummy", false);
Repo repo = gitHub.repos().create(create);
Issue issue = repo.issues().create("title", "body");
By default, it works with a temporary file, which will be deleted on JVM exit:
Github github = new MkGithub("jeff");Github.Time| Constructor and Description |
|---|
MkGithub()
Public ctor.
|
MkGithub(MkStorage stg,
String login)
Public ctor.
|
MkGithub(String login)
Public ctor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.json.JsonObject |
emojis()
Get emojis.
|
com.jcabi.http.Request |
entry()
RESTful request, an entry point to the Github API.
|
Gists |
gists()
Get Gists API entry point.
|
Gitignores |
gitignores()
Get gitignores.
|
Limits |
limits()
Rate limit API entry point.
|
Markdown |
markdown()
Get Markdown API entry point.
|
javax.json.JsonObject |
meta()
Get meta information.
|
Organizations |
organizations()
Get Organizations API entry point.
|
Repo |
randomRepo()
Create repo with random name.
|
Github |
relogin(String login)
Relogin.
|
Repos |
repos()
Get repositories.
|
Search |
search()
Search API entry point.
|
String |
toString() |
Users |
users()
Get Users API entry point.
|
public MkGithub()
throws IOException
IOException - If there is any I/O problempublic MkGithub(String login) throws IOException
login - User to loginIOException - If there is any I/O problempublic com.jcabi.http.Request entry()
Githubpublic Organizations organizations()
Githuborganizations in interface Githubpublic javax.json.JsonObject meta()
Githubpublic Gitignores gitignores() throws IOException
Githubgitignores in interface GithubIOException - If there is any I/O problempublic javax.json.JsonObject emojis()
Githubemojis in interface Githubpublic Markdown markdown()
Githubpublic Github relogin(String login) throws IOException
login - User to loginIOException - If there is any I/O problempublic Repo randomRepo() throws IOException
IOException - If failsCopyright © 2012–2018 jcabi.com. All rights reserved.