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 ContentAPI
registerAPI
(String... OAuthTokens) Register a new ContentAPI based on OAuthTokens providedstatic ContentAPI
registerAPI
(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:
IOException
InterruptedException
-
getContentFile
- Throws:
IOException
InterruptedException
-
getContentRaw
- Throws:
IOException
InterruptedException
-
getContentRaw
- Throws:
IOException
InterruptedException
-
getContentDirect
- Throws:
IOException
InterruptedException
-
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:
-