public class GamesResource extends AbstractResource
GamesResource provides the functionality
to access the /games endpoints of the Twitch API.AbstractResource.TwitchHttpResponseHandlerhttp, objectMapper| Constructor and Description |
|---|
GamesResource(java.lang.String baseUrl,
int apiVersion)
Construct the resource using the Twitch API base URL and specified API version.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getTop(com.mb3364.http.RequestParams params,
TopGamesResponseHandler handler)
Returns a list of games objects sorted by number of current viewers on Twitch, most popular first.
|
void |
getTop(TopGamesResponseHandler handler)
Returns a list of games objects sorted by number of current viewers on Twitch, most popular first.
|
getBaseUrl, setAuthAccessToken, setClientIdpublic GamesResource(java.lang.String baseUrl,
int apiVersion)
baseUrl - the base URL of the Twitch APIapiVersion - the requested version of the Twitch APIpublic void getTop(com.mb3364.http.RequestParams params,
TopGamesResponseHandler handler)
params - the optional request parameters:
limit: the maximum number of objects in array. Maximum is 100.offset: the object offset for pagination. Default is 0.handler - the response handlerpublic void getTop(TopGamesResponseHandler handler)
handler - the response handler