Class ApiInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class ApiInterceptor
    extends Object
    implements okhttp3.Interceptor
    An ApiInterceptor object appends authorization information to all API calls and is used to check the status of the request for debugging purposes.
    • Constructor Detail

      • ApiInterceptor

        public ApiInterceptor​(String accessToken,
                              String sdkVersion)
    • Method Detail

      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws IOException
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        IOException