Package ai.rev.speechtotext
Class ApiInterceptor
- java.lang.Object
-
- ai.rev.speechtotext.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 Summary
Constructors Constructor Description ApiInterceptor(String accessToken, String sdkVersion)
-
-
-
Method Detail
-
intercept
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-
-