Class TwitchHelixClientIdInterceptor
java.lang.Object
com.github.twitch4j.helix.interceptor.TwitchHelixClientIdInterceptor
- All Implemented Interfaces:
feign.RequestInterceptor
Injects ClientId Header, the User Agent and other common headers into each API Request
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTwitchHelixClientIdInterceptor
(String userAgent, TwitchHelixTokenManager tokenManager) Constructor -
Method Summary
-
Field Details
-
AUTH_HEADER
- See Also:
-
BEARER_PREFIX
- See Also:
-
CLIENT_HEADER
- See Also:
-
-
Constructor Details
-
TwitchHelixClientIdInterceptor
Constructor
-
-
Method Details
-
apply
public void apply(feign.RequestTemplate template) Interceptor- Specified by:
apply
in interfacefeign.RequestInterceptor
- Parameters:
template
- Feign RequestTemplate
-