Class ClientConfigurationUtils
- java.lang.Object
-
- com.commercetools.sync.commons.utils.ClientConfigurationUtils
-
public final class ClientConfigurationUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ClientConfigurationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.commercetools.api.client.ProjectApiRoot
createClient(java.lang.String projectKey, io.vrap.rmf.base.client.oauth2.ClientCredentials credentials, java.lang.String authUrl, java.lang.String apiUrl)
Creates aProjectApiRoot
.
-
-
-
Method Detail
-
createClient
public static com.commercetools.api.client.ProjectApiRoot createClient(@Nonnull java.lang.String projectKey, @Nonnull io.vrap.rmf.base.client.oauth2.ClientCredentials credentials, @Nonnull java.lang.String authUrl, @Nonnull java.lang.String apiUrl)
Creates aProjectApiRoot
.- Parameters:
projectKey
- commercetools project keycredentials
- api credentials with clientId, clientSecret and scopesauthUrl
- the auth url of the commercetools platform that project is boundapiUrl
- the api url of the commercetools platform that project is bound- Returns:
- the instantiated
ProjectApiRoot
.
-
-