public final class BitoProClientBuilder extends Object
BitoProClient and BitoProPublicClient.| Modifier and Type | Method and Description |
|---|---|
BitoProClient |
create(String apiKey,
String secret,
String email)
Create BitoProClient with provided api key, secret and email.
|
BitoProPublicClient |
createPublic()
Create BitoProPublicClient.
|
BitoProClient |
createWithEnv()
Create BitoProClient with key, secret, email from ENV using "BITO_PRO_KEY", "BITO_PRO_SECRET" and "BITO_PRO_EMAIL" as keys respectively.
|
BitoProClient |
createWithProperties(Properties properties)
Create BitoProClient with key, secret, email from provided Properties using "bitopro.key", "bitopro.secret" and "bitopro.email" as keys respectively.
|
BitoProClient |
createWithSystemProperties()
Create BitoProClient with key, secret, email from Java system properties using "BITO_PRO_KEY", "BITO_PRO_SECRET" and "BITO_PRO_EMAIL" as keys respectively.
|
static BitoProClientBuilder |
withClient(CloseableHttpClient client)
Create a BitoProClientBuilder with provided client.
|
static BitoProClientBuilder |
withDefaultClient()
Create a BitoProClientBuilder with default client.
|
public static BitoProClientBuilder withClient(CloseableHttpClient client)
client - CloseableHttpClient to be used with BitoProClient/BitoProPublicClientpublic static BitoProClientBuilder withDefaultClient()
public BitoProClient createWithEnv()
public BitoProClient createWithProperties(Properties properties)
properties - a properties with specified key valuespublic BitoProClient createWithSystemProperties()
public BitoProClient create(String apiKey, String secret, String email)
apiKey - BitoPro API keysecret - BitoPro API secretemail - BitoPro email (account)public BitoProPublicClient createPublic()