public class TeamsResource extends AbstractResource
TeamsResource
provides the functionality
to access the /teams
endpoints of the Twitch API.AbstractResource.TwitchHttpResponseHandler
http, objectMapper
Constructor and Description |
---|
TeamsResource(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 |
get(com.mb3364.http.RequestParams params,
TeamsResponseHandler handler)
Returns a list of active teams.
|
void |
get(java.lang.String team,
TeamResponseHandler handler)
Returns a specified
Team object. |
void |
get(TeamsResponseHandler handler)
Returns a list of active teams.
|
getBaseUrl, setAuthAccessToken, setClientId
public TeamsResource(java.lang.String baseUrl, int apiVersion)
baseUrl
- the base URL of the Twitch APIapiVersion
- the requested version of the Twitch APIpublic void get(com.mb3364.http.RequestParams params, TeamsResponseHandler 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 get(TeamsResponseHandler handler)
handler
- the response handlerpublic void get(java.lang.String team, TeamResponseHandler handler)
Team
object.team
- the name of the Team
handler
- the response handler