diff --git a/javadoc/allclasses-index.html b/javadoc/allclasses-index.html index 58defca5cd0..d08cf78ac77 100644 --- a/javadoc/allclasses-index.html +++ b/javadoc/allclasses-index.html @@ -12611,7 +12611,7 @@
See the test code.
Similar configuration to create the root instances for the Import API
@@ -123,6 +132,32 @@See the test code.
// Project scoped ApiRoot config using ServiceRegion class +ProjectApiRoot projectApiRoot = ApiRootBuilder.of() + .defaultClient( + ClientCredentials.of() + .withClientId("your-client-id") + .withClientSecret("your-client-secret") + .build(), + ServiceRegion.GCP_EUROPE_WEST1.getOAuthTokenUrl(), ServiceRegion.GCP_EUROPE_WEST1.getApiUrl()) + .build("my-project"); + +// Project scoped ApiRoot config using URI strings +ProjectApiRoot projectApiRoot2 = ApiRootBuilder.of() + .defaultClient( + ClientCredentials.of() + .withClientId("your-client-id") + .withClientSecret("your-client-secret") + .build(), + "https://auth.europe-west1.gcp.commercetools.com/oauth/token", + "https://api.europe-west1.gcp.commercetools.com/") + .build("my-project"); +
See the test code.
The builder can be instantiated with a custom VrapHttpClient
instance. For example a
diff --git a/javadoc/com/commercetools/docs/meta/GettingStarted.html b/javadoc/com/commercetools/docs/meta/GettingStarted.html
index d44dc469772..2d319be9976 100644
--- a/javadoc/com/commercetools/docs/meta/GettingStarted.html
+++ b/javadoc/com/commercetools/docs/meta/GettingStarted.html
@@ -104,6 +104,15 @@
See the test code.
Configuration
- ApiRoot and ProjectApiRoot
Custom HTTP client
Error handling
Unwrap exceptions
Not found
ApiRoot and ProjectApiRoot
Custom URLs
Custom HTTP client
Error handling
Unwrap exceptions
Not found
Authentication