public class PlivoClient
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BASE_URL |
| Constructor and Description |
|---|
PlivoClient(java.lang.String authId,
java.lang.String authToken) |
PlivoClient(java.lang.String authId,
java.lang.String authToken,
okhttp3.OkHttpClient.Builder httpClientBuilder)
Constructs a new PlivoClient instance.
|
| Modifier and Type | Method and Description |
|---|---|
PlivoAPIService |
getApiService() |
java.lang.String |
getAuthId() |
java.lang.String |
getAuthToken() |
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
boolean |
isTesting() |
void |
setTesting(boolean testing) |
public PlivoClient(java.lang.String authId,
java.lang.String authToken)
public PlivoClient(java.lang.String authId,
java.lang.String authToken,
okhttp3.OkHttpClient.Builder httpClientBuilder)
new OkHttpClient.Builder()
.proxy(proxy)
.connectTimeout(1, TimeUnit.MINUTES);
authId - authToken - httpClientBuilder - public void setTesting(boolean testing)
public boolean isTesting()
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public PlivoAPIService getApiService()
public java.lang.String getAuthId()
public java.lang.String getAuthToken()