|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.kohsuke.github.GitHub
public class GitHub
Root of the GitHub API.
| Method Summary | |
|---|---|
static GitHub |
connect()
Obtains the credential from "~/.github" |
static GitHub |
connect(java.lang.String login,
java.lang.String apiToken)
|
static GitHub |
connectAnonymously()
Connects to GitHub anonymously. |
GHRepository |
createRepository(java.lang.String name,
java.lang.String description,
java.lang.String homepage,
boolean isPublic)
Creates a new repository. |
GHUser |
getMyself()
Gets the GHUser that represents yourself. |
GHOrganization |
getOrganization(java.lang.String name)
|
protected GHUser |
getUser(GHUser orig)
Interns the given GHUser. |
GHUser |
getUser(java.lang.String login)
Obtains the object that represents the named user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static GitHub connect()
throws java.io.IOException
java.io.IOException
public static GitHub connect(java.lang.String login,
java.lang.String apiToken)
throws java.io.IOException
java.io.IOExceptionpublic static GitHub connectAnonymously()
public GHUser getUser(java.lang.String login)
throws java.io.IOException
java.io.IOException
protected GHUser getUser(GHUser orig)
throws java.io.IOException
GHUser.
java.io.IOException
public GHOrganization getOrganization(java.lang.String name)
throws java.io.IOException
java.io.IOException
public GHUser getMyself()
throws java.io.IOException
GHUser that represents yourself.
java.io.IOException
public GHRepository createRepository(java.lang.String name,
java.lang.String description,
java.lang.String homepage,
boolean isPublic)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||