|
|||||||||
| 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(String login,
String apiToken)
|
|
static GitHub |
connect(String login,
String apiToken,
String password)
|
|
static GitHub |
connectAnonymously()
Connects to GitHub anonymously. |
|
static GitHub |
connectUsingOAuth(String accessToken)
|
|
static GitHub |
connectUsingOAuth(String githubServer,
String accessToken)
|
|
GHRepository |
createRepository(String name,
String description,
String homepage,
boolean isPublic)
Creates a new repository. |
|
List<GHEventInfo> |
getEvents()
Public events visible to you. |
|
Map<String,GHOrganization> |
getMyOrganizations()
|
|
GHMyself |
getMyself()
Gets the GHUser that represents yourself. |
|
GHOrganization |
getOrganization(String name)
|
|
GHRepository |
getRepository(String name)
Gets the repository object from 'user/reponame' string that GitHub calls as "repository 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. |
|
|
parseEventPayload(Reader r,
Class<T> type)
Parses the GitHub event object. |
|
| 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 connectUsingOAuth(String accessToken)
throws IOException
IOException
public static GitHub connectUsingOAuth(String githubServer,
String accessToken)
throws IOException
IOExceptionpublic static GitHub connectAnonymously()
@WithBridgeMethods(value=GHUser.class)
public GHMyself getMyself()
throws IOException
GHUser that represents yourself.
IOException
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 GHRepository getRepository(String name)
throws IOException
IOExceptionGHRepository.getName()
public Map<String,GHOrganization> getMyOrganizations()
throws IOException
IOException
public List<GHEventInfo> getEvents()
throws IOException
IOException
public <T extends GHEventPayload> T parseEventPayload(Reader r,
Class<T> type)
throws IOException
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 | ||||||||