Class ContentAPI
java.lang.Object
edu.sustech.search.engine.github.API.RestAPI
edu.sustech.search.engine.github.API.ContentAPI
-
Field Summary
Fields inherited from class edu.sustech.search.engine.github.API.RestAPI
TIME_OUT_DURATION -
Method Summary
Modifier and TypeMethodDescriptiongetContentDirect(URI uri) getContentDirectory(URI uri) getContentFile(URI uri) getContentRaw(Repository repo, String path) getContentRaw(URI uri) static ContentAPIregisterAPI(String... OAuthTokens) Register a new ContentAPI based on OAuthTokens providedstatic ContentAPIregisterAPI(List<String> OAuthTokens) Register a new ContentAPI 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
-
getContentDirectory
- Throws:
IOExceptionInterruptedException
-
getContentFile
- Throws:
IOExceptionInterruptedException
-
getContentRaw
- Throws:
IOExceptionInterruptedException
-
getContentRaw
- Throws:
IOExceptionInterruptedException
-
getContentDirect
- Throws:
IOExceptionInterruptedException
-
registerAPI
Register a new ContentAPI based on OAuthTokens provided- Parameters:
OAuthTokens- Array of OAuthTokens- Returns:
-
registerAPI
Register a new ContentAPI based on OAuthTokens provided- Parameters:
OAuthTokens- List of OAuthTokens- Returns:
-