public class Twitch
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_API_VERSION |
static java.lang.String |
DEFAULT_BASE_URL |
| Constructor and Description |
|---|
Twitch()
Constructs a Twitch application instance.
|
Twitch(java.lang.String baseUrl,
int apiVersion)
Constructs a Twitch application instance with a set API base URL and API version number.
|
| Modifier and Type | Method and Description |
|---|---|
Authenticator |
auth()
Get the authenticator object.
|
ChannelsResource |
channels()
Get the
ChannelsResource object. |
ChatResource |
chat()
Get the
ChatResource object. |
GamesResource |
games()
Get the
GamesResource object. |
java.lang.String |
getClientId()
Get the set Twitch client ID.
|
IngestsResource |
ingests()
Get the
IngestsResource object. |
RootResource |
root()
Get the
RootResource object. |
SearchResource |
search()
Get the
SearchResource object. |
void |
setClientId(java.lang.String clientId)
Set the Twitch client ID.
|
StreamsResource |
streams()
Get the
StreamsResource object. |
TeamsResource |
teams()
Get the
TeamsResource object. |
UsersResource |
users()
Get the
UsersResource object. |
VideosResource |
videos()
Get the
VideosResource object. |
public static final java.lang.String DEFAULT_BASE_URL
public static final int DEFAULT_API_VERSION
public Twitch(java.lang.String baseUrl,
int apiVersion)
baseUrl - the base URL of the Twitch APIapiVersion - the API version number to requestpublic Twitch()
public java.lang.String getClientId()
public void setClientId(java.lang.String clientId)
Passed to authorization endpoints to identify your application.
clientId - Twitch client IDpublic Authenticator auth()
Authenticatorpublic ChannelsResource channels()
ChannelsResource object. The ChannelsResource provides
the functionality to access the /channels endpoints of the Twitch API.ChannelsResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResourcepublic ChatResource chat()
ChatResource object. The ChatResource provides
the functionality to access the /chat endpoints of the Twitch API.ChatResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResourcepublic GamesResource games()
GamesResource object. The GamesResource provides
the functionality to access the /games endpoints of the Twitch API.GamesResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResourcepublic IngestsResource ingests()
IngestsResource object. The IngestsResource provides
the functionality to access the /ingests endpoints of the Twitch API.IngestsResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResourcepublic RootResource root()
RootResource object. The RootResource provides
the functionality to access the root / endpoints of the Twitch API.RootResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResourcepublic SearchResource search()
SearchResource object. The SearchResource provides
the functionality to access the /search endpoints of the Twitch API.SearchResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResourcepublic StreamsResource streams()
StreamsResource object. The StreamsResource provides
the functionality to access the /streams endpoints of the Twitch API.StreamsResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResourcepublic TeamsResource teams()
TeamsResource object. The TeamsResource provides
the functionality to access the /teams endpoints of the Twitch API.TeamsResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResourcepublic UsersResource users()
UsersResource object. The UsersResource provides
the functionality to access the /users endpoints of the Twitch API.UsersResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResourcepublic VideosResource videos()
VideosResource object. The VideosResource provides
the functionality to access the /videos endpoints of the Twitch API.VideosResource objectChannelsResource,
ChatResource,
GamesResource,
IngestsResource,
RootResource,
SearchResource,
StreamsResource,
TeamsResource,
UsersResource,
VideosResource