public static class PlaidClient.Builder extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_CONNECT_TIMEOUT_SECONDS |
static String |
DEFAULT_DEVELOPMENT_BASE_URL |
static String |
DEFAULT_PRODUCTION_BASE_URL |
static long |
DEFAULT_READ_TIMEOUT_SECONDS |
static String |
DEFAULT_SANDBOX_BASE_URL |
Modifier and Type | Method and Description |
---|---|
PlaidClient.Builder |
baseUrl(String baseUrl)
Set a custom base API url, if
productionBaseUrl() or sandboxBaseUrl() aren't sufficient. |
PlaidClient |
build()
Validate builder parameters, create, and return a new
PlaidClient |
PlaidClient.Builder |
clientIdAndSecret(String clientId,
String secret)
Set the client ID and secret credentials.
|
PlaidClient.Builder |
developmentBaseUrl()
Configure the client to use the default
sandbox URL . |
PlaidClient.Builder |
logLevel(okhttp3.logging.HttpLoggingInterceptor.Level level)
Convenience method to set the HTTP client's logging level.
|
okhttp3.OkHttpClient.Builder |
okHttpClientBuilder()
Generally, you should not need this!
|
PlaidClient.Builder |
productionBaseUrl()
Configure the client to use the default
production URL . |
PlaidClient.Builder |
publicKey(String publicKey)
Set the public key credential.
|
PlaidClient.Builder |
sandboxBaseUrl()
Configure the client to use the default
sandbox URL . |
public static String DEFAULT_PRODUCTION_BASE_URL
public static String DEFAULT_DEVELOPMENT_BASE_URL
public static String DEFAULT_SANDBOX_BASE_URL
public static long DEFAULT_READ_TIMEOUT_SECONDS
public static long DEFAULT_CONNECT_TIMEOUT_SECONDS
public PlaidClient build()
PlaidClient
PlaidClient
public okhttp3.OkHttpClient.Builder okHttpClientBuilder()
Direct access to the underlying OkHTTP client builder for advanced settings like SSL, proxy, logging, and timeout options if needed.
public PlaidClient.Builder logLevel(okhttp3.logging.HttpLoggingInterceptor.Level level)
level
- Desired logging level.public PlaidClient.Builder baseUrl(String baseUrl)
productionBaseUrl()
or sandboxBaseUrl()
aren't sufficient.baseUrl
- The base URL you wish to use.public PlaidClient.Builder productionBaseUrl()
production URL
.public PlaidClient.Builder sandboxBaseUrl()
sandbox URL
.public PlaidClient.Builder developmentBaseUrl()
sandbox URL
.public PlaidClient.Builder publicKey(String publicKey)
publicKey
- Your Plaid API Public key.PlaidClient.Builder
to satisfy the builder pattern.public PlaidClient.Builder clientIdAndSecret(String clientId, String secret)
clientId
- Your Plaid API Client IDsecret
- Your Plaid API SecretPlaidClient.Builder
to satisfy the builder pattern.Copyright © 2017–2018 Plaid Technologies, Inc.. All rights reserved.