Package com.github.twitch4j.helix
Class TwitchHelixBuilder
java.lang.Object
com.github.twitch4j.helix.TwitchHelixBuilder
public class TwitchHelixBuilder
extends java.lang.Object
Twitch API - Helix
-
Method Summary
Modifier and Type Method Description TwitchHelixbuild()Twitch API Client (Helix)static TwitchHelixBuilderbuilder()Initialize the builderjava.lang.StringgetBaseUrl()BaseUrljava.lang.StringgetClientId()Client Idjava.lang.StringgetClientSecret()Client Secretcom.github.philippheuer.credentialmanager.domain.OAuth2CredentialgetDefaultAuthToken()Default Auth Token for API Requestsfeign.Logger.LevelgetLogLevel()you can overwrite the feign loglevel to print the full requests + responses if neededcom.github.twitch4j.common.config.ProxyConfiggetProxyConfig()Proxy Configurationjava.lang.IntegergetRequestQueueSize()HTTP Request Queue Sizejava.util.concurrent.ScheduledThreadPoolExecutorgetScheduledThreadPoolExecutor()Scheduler Thread Pool Executorjava.lang.IntegergetTimeout()Default Timeoutjava.lang.StringgetUserAgent()User AgentTwitchHelixBuilderwithClientId(java.lang.String clientId)Client IdTwitchHelixBuilderwithClientSecret(java.lang.String clientSecret)Client SecretTwitchHelixBuilderwithDefaultAuthToken(com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultAuthToken)Default Auth Token for API RequestsTwitchHelixBuilderwithLogLevel(feign.Logger.Level logLevel)you can overwrite the feign loglevel to print the full requests + responses if neededTwitchHelixBuilderwithProxyConfig(com.github.twitch4j.common.config.ProxyConfig proxyConfig)Proxy ConfigurationTwitchHelixBuilderwithRequestQueueSize(java.lang.Integer requestQueueSize)HTTP Request Queue SizeTwitchHelixBuilderwithScheduledThreadPoolExecutor(java.util.concurrent.ScheduledThreadPoolExecutor scheduledThreadPoolExecutor)Scheduler Thread Pool ExecutorTwitchHelixBuilderwithTimeout(java.lang.Integer timeout)Default TimeoutTwitchHelixBuilderwithUserAgent(java.lang.String userAgent)User AgentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
builder
Initialize the builder- Returns:
- Twitch Helix Builder
-
build
Twitch API Client (Helix)- Returns:
- TwitchHelix
-
getClientId
public java.lang.String getClientId()Client Id -
getClientSecret
public java.lang.String getClientSecret()Client Secret -
getUserAgent
public java.lang.String getUserAgent()User Agent -
getDefaultAuthToken
public com.github.philippheuer.credentialmanager.domain.OAuth2Credential getDefaultAuthToken()Default Auth Token for API Requests -
getRequestQueueSize
public java.lang.Integer getRequestQueueSize()HTTP Request Queue Size -
getBaseUrl
public java.lang.String getBaseUrl()BaseUrl -
getTimeout
public java.lang.Integer getTimeout()Default Timeout -
getLogLevel
public feign.Logger.Level getLogLevel()you can overwrite the feign loglevel to print the full requests + responses if needed -
getProxyConfig
public com.github.twitch4j.common.config.ProxyConfig getProxyConfig()Proxy Configuration -
getScheduledThreadPoolExecutor
public java.util.concurrent.ScheduledThreadPoolExecutor getScheduledThreadPoolExecutor()Scheduler Thread Pool Executor -
withClientId
Client Id- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withClientSecret
Client Secret- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUserAgent
User Agent- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDefaultAuthToken
public TwitchHelixBuilder withDefaultAuthToken(com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultAuthToken)Default Auth Token for API Requests- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRequestQueueSize
HTTP Request Queue Size- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTimeout
Default Timeout- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLogLevel
you can overwrite the feign loglevel to print the full requests + responses if needed- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withProxyConfig
public TwitchHelixBuilder withProxyConfig(com.github.twitch4j.common.config.ProxyConfig proxyConfig)Proxy Configuration- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withScheduledThreadPoolExecutor
public TwitchHelixBuilder withScheduledThreadPoolExecutor(java.util.concurrent.ScheduledThreadPoolExecutor scheduledThreadPoolExecutor)Scheduler Thread Pool Executor- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-