Class RepositoryAPI
java.lang.Object
edu.sustech.search.engine.github.API.RestAPI
edu.sustech.search.engine.github.API.RepositoryAPI
-
Field Summary
Fields inherited from class edu.sustech.search.engine.github.API.RestAPI
TIME_OUT_DURATION -
Method Summary
Modifier and TypeMethodDescriptiongetContributors(URI uri) getRepository(String repoFullName) getRepository(URI uri) getRepositoryInfo(String repoFullName) getRepositoryInfoRaw(String repoFullName) getStarGazers(String repoFullName) getStarGazers(URI uri) static RepositoryAPIregisterAPI(String... OAuthTokens) Register a new RepositoryAPI based on OAuthTokens providedstatic RepositoryAPIregisterAPI(List<String> OAuthTokens) Register a new RepositoryAPI based on OAuthTokens providedMethods inherited from class edu.sustech.search.engine.github.API.RestAPI
addToken, convert, getHttpResponse, getHttpResponse, getHttpResponseLoopFetching, getHttpResponseLoopFetching, getHttpResponseLoopFetching, getHttpResponseLoopFetching, getHttpResponseRaw, getHttpResponseRaw, getHttpResponseRawLoopFetching, getHttpResponseRawLoopFetching, getHttpResponseRawLoopFetching, getHttpResponseRawLoopFetching, getNextToken, getRateLimit, getTokenCursor, parseEndPageCount, printRateLimit, setSuppressRateError, setSuppressResponseError, setTokenCursor
-
Method Details
-
getContributors
- Throws:
IOExceptionInterruptedException
-
getContributors
- Throws:
IOExceptionInterruptedException
-
getStarGazers
public List<Entry<User,Date>> getStarGazers(String repoFullName) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getStarGazers
- Throws:
IOExceptionInterruptedException
-
getStarGazers
- Throws:
IOExceptionInterruptedException
-
getRepository
- Throws:
IOExceptionInterruptedException
-
getRepository
- Throws:
IOExceptionInterruptedException
-
getRepositoryInfoRaw
- Throws:
IOExceptionInterruptedException
-
getRepositoryInfo
public HttpResponse<String> getRepositoryInfo(String repoFullName) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getRepositoryInfoDirect
public HttpResponse<String> getRepositoryInfoDirect(URI uri) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
registerAPI
Register a new RepositoryAPI based on OAuthTokens provided- Parameters:
OAuthTokens- Array of OAuthTokens- Returns:
-
registerAPI
Register a new RepositoryAPI based on OAuthTokens provided- Parameters:
OAuthTokens- List of OAuthTokens- Returns:
-