@@ -46,7 +46,7 @@ import com.withorb.api.client.okhttp.OrbOkHttpClient;
4646import com.withorb.api.models.Customer ;
4747import com.withorb.api.models.CustomerCreateParams ;
4848
49- // Configures using the `ORB_API_KEY` and `ORB_WEBHOOK_SECRET ` environment variables
49+ // Configures using the `ORB_API_KEY`, `ORB_WEBHOOK_SECRET` and `ORB_BASE_URL ` environment variables
5050OrbClient client = OrbOkHttpClient . fromEnv();
5151
5252CustomerCreateParams params = CustomerCreateParams . builder()
@@ -64,7 +64,7 @@ Configure the client using environment variables:
6464import com.withorb.api.client.OrbClient ;
6565import com.withorb.api.client.okhttp.OrbOkHttpClient ;
6666
67- // Configures using the `ORB_API_KEY` and `ORB_WEBHOOK_SECRET ` environment variables
67+ // Configures using the `ORB_API_KEY`, `ORB_WEBHOOK_SECRET` and `ORB_BASE_URL ` environment variables
6868OrbClient client = OrbOkHttpClient . fromEnv();
6969```
7070
@@ -86,18 +86,19 @@ import com.withorb.api.client.OrbClient;
8686import com.withorb.api.client.okhttp.OrbOkHttpClient ;
8787
8888OrbClient client = OrbOkHttpClient . builder()
89- // Configures using the `ORB_API_KEY` and `ORB_WEBHOOK_SECRET ` environment variables
89+ // Configures using the `ORB_API_KEY`, `ORB_WEBHOOK_SECRET` and `ORB_BASE_URL ` environment variables
9090 .fromEnv()
9191 .apiKey(" My API Key" )
9292 .build();
9393```
9494
9595See this table for the available options:
9696
97- | Setter | Environment variable | Required | Default value |
98- | --------------- | -------------------- | -------- | ------------- |
99- | ` apiKey ` | ` ORB_API_KEY ` | true | - |
100- | ` webhookSecret ` | ` ORB_WEBHOOK_SECRET ` | false | - |
97+ | Setter | Environment variable | Required | Default value |
98+ | --------------- | -------------------- | -------- | ------------------------------ |
99+ | ` apiKey ` | ` ORB_API_KEY ` | true | - |
100+ | ` webhookSecret ` | ` ORB_WEBHOOK_SECRET ` | false | - |
101+ | ` baseUrl ` | ` ORB_BASE_URL ` | true | ` "https://api.withorb.com/v1" ` |
101102
102103> [ !TIP]
103104> Don't create more than one client in the same application. Each client has a connection pool and
@@ -128,7 +129,7 @@ import com.withorb.api.models.Customer;
128129import com.withorb.api.models.CustomerCreateParams ;
129130import java.util.concurrent.CompletableFuture ;
130131
131- // Configures using the `ORB_API_KEY` and `ORB_WEBHOOK_SECRET ` environment variables
132+ // Configures using the `ORB_API_KEY`, `ORB_WEBHOOK_SECRET` and `ORB_BASE_URL ` environment variables
132133OrbClient client = OrbOkHttpClient . fromEnv();
133134
134135CustomerCreateParams params = CustomerCreateParams . builder()
@@ -147,7 +148,7 @@ import com.withorb.api.models.Customer;
147148import com.withorb.api.models.CustomerCreateParams ;
148149import java.util.concurrent.CompletableFuture ;
149150
150- // Configures using the `ORB_API_KEY` and `ORB_WEBHOOK_SECRET ` environment variables
151+ // Configures using the `ORB_API_KEY`, `ORB_WEBHOOK_SECRET` and `ORB_BASE_URL ` environment variables
151152OrbClientAsync client = OrbOkHttpClientAsync . fromEnv();
152153
153154CustomerCreateParams params = CustomerCreateParams . builder()
0 commit comments