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 RepositoryAPI
registerAPI
(String... OAuthTokens) Register a new RepositoryAPI based on OAuthTokens providedstatic RepositoryAPI
registerAPI
(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:
IOException
InterruptedException
-
getContributors
- Throws:
IOException
InterruptedException
-
getStarGazers
public List<Entry<User,Date>> getStarGazers(String repoFullName) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getStarGazers
- Throws:
IOException
InterruptedException
-
getStarGazers
- Throws:
IOException
InterruptedException
-
getRepository
- Throws:
IOException
InterruptedException
-
getRepository
- Throws:
IOException
InterruptedException
-
getRepositoryInfoRaw
- Throws:
IOException
InterruptedException
-
getRepositoryInfo
public HttpResponse<String> getRepositoryInfo(String repoFullName) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getRepositoryInfoDirect
public HttpResponse<String> getRepositoryInfoDirect(URI uri) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
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:
-