@Immutable @Loggable(value=1) public final class MkGithub extends Object implements Github
This is how you use it:
Github github = new MkGithub(new MkStorage.InFile(file), "jeff"); github.repos().create("jcabi/jcabi-github"); Repo repo = github.repos().get("jcabi/jcabi-github"); Issues issues = repo.issues(); Issue issue = issues.post("issue title", "issue 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.
|
Limits |
limits()
Rate limit API entry point.
|
Markdown |
markdown()
Get Markdown API entry point.
|
javax.json.JsonObject |
meta()
Get meta information.
|
Github |
relogin(String login)
Relogin.
|
Repos |
repos()
Get repositories.
|
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()
Github
public javax.json.JsonObject meta()
Github
public javax.json.JsonObject emojis()
Github
emojis
in interface Github
public Markdown markdown()
markdown
in interface Github
public Github relogin(@NotNull(message="login is never NULL") String login) throws IOException
login
- User to loginIOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.