public abstract class API extends Object
| Modifier and Type | Field and Description |
|---|---|
protected okhttp3.OkHttpClient |
client |
protected String |
clientId |
protected String |
clientSecret |
protected boolean |
enableLogging |
protected Boolean |
enableTelemetry |
protected static String |
KEY_CLIENT_ID |
protected static String |
KEY_CLIENT_SECRET |
| Constructor and Description |
|---|
API(String clientId,
String clientSecret,
boolean enableLogging,
List<String> redactHeaders,
HttpOptions options,
Boolean enableTelemetry,
String libraryVersion) |
API(String clientId,
String clientSecret,
boolean enableLogging,
List<String> redactHeaders,
HttpOptions options,
Boolean enableTelemetry,
String libraryVersion,
String apiVersion) |
| Modifier and Type | Method and Description |
|---|---|
protected okhttp3.HttpUrl |
createUrlFromString(String url) |
boolean |
isLoggingEnabled() |
protected static final String KEY_CLIENT_ID
protected static final String KEY_CLIENT_SECRET
protected final String clientId
protected final String clientSecret
protected final boolean enableLogging
protected final Boolean enableTelemetry
protected final okhttp3.OkHttpClient client
public API(String clientId, String clientSecret, boolean enableLogging, List<String> redactHeaders, HttpOptions options, Boolean enableTelemetry, String libraryVersion)
public boolean isLoggingEnabled()
@Nullable protected okhttp3.HttpUrl createUrlFromString(String url)
Copyright © 2022. All rights reserved.