Class TwitchExtensionsClientIdInterceptor

java.lang.Object
com.github.twitch4j.extensions.util.TwitchExtensionsClientIdInterceptor
All Implemented Interfaces:
feign.RequestInterceptor

public class TwitchExtensionsClientIdInterceptor extends Object implements feign.RequestInterceptor
Injects Client-ID and User-Agent in each API request
  • Constructor Details

    • TwitchExtensionsClientIdInterceptor

      public TwitchExtensionsClientIdInterceptor(TwitchExtensionsBuilder builder)
      Constructor
      Parameters:
      builder - Twitch Extensions Builder
  • Method Details

    • apply

      public void apply(feign.RequestTemplate template)
      Interceptor
      Specified by:
      apply in interface feign.RequestInterceptor
      Parameters:
      template - Feign RequestTemplate