|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kohsuke.github.GitHub
public class GitHub
Root of the GitHub API.
Method Summary | |
---|---|
static GitHub |
connect()
Obtains the credential from "~/.github" |
static GitHub |
connect(String login,
String apiToken)
|
static GitHub |
connect(String login,
String apiToken,
String password)
|
static GitHub |
connectAnonymously()
Connects to GitHub anonymously. |
GHRepository |
createRepository(String name,
String description,
String homepage,
boolean isPublic)
Creates a new repository. |
GHUser |
getMyself()
Gets the GHUser that represents yourself. |
GHOrganization |
getOrganization(String name)
|
protected GHUser |
getUser(GHUser orig)
Interns the given GHUser . |
GHUser |
getUser(String login)
Obtains the object that represents the named user. |
boolean |
isCredentialValid()
Ensures that the credential is valid. |
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 IOException
IOException
public static GitHub connect(String login, String apiToken) throws IOException
IOException
public static GitHub connect(String login, String apiToken, String password) throws IOException
IOException
public static GitHub connectAnonymously()
public GHUser getUser(String login) throws IOException
IOException
protected GHUser getUser(GHUser orig) throws IOException
GHUser
.
IOException
public GHOrganization getOrganization(String name) throws IOException
IOException
public GHUser getMyself() throws IOException
GHUser
that represents yourself.
IOException
public GHRepository createRepository(String name, String description, String homepage, boolean isPublic) throws IOException
IOException
public boolean isCredentialValid() throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |