public class MailChimpClientBuilder extends Object
MailChimpClient| Constructor and Description |
|---|
MailChimpClientBuilder() |
| Modifier and Type | Method and Description |
|---|---|
MailChimpClient |
build()
Builds a new client with feign proxy.
|
MailChimpClientBuilder |
withApiBase(String apiBase)
Changes the API base for mailchimp.
|
MailChimpClientBuilder |
withBasicAuthentication(String apiKey)
Sets the authentication type to basic with the given api key as password.
|
MailChimpClientBuilder |
withClient(feign.Client client)
Changes the default client.
|
MailChimpClientBuilder |
withLogger(feign.Logger logger)
Changes the logger implementation.
|
MailChimpClientBuilder |
withLogLevel(feign.Logger.Level logLevel)
Changes the loglevel
|
MailChimpClientBuilder |
withOAuth2Authentication(String accessToken)
Changes authentication to OAuth2 with the given access token.
|
public MailChimpClientBuilder withClient(feign.Client client)
client - the clientpublic MailChimpClientBuilder withLogger(feign.Logger logger)
logger - the loggerpublic MailChimpClientBuilder withLogLevel(feign.Logger.Level logLevel)
logLevel - the loglevelpublic MailChimpClientBuilder withBasicAuthentication(String apiKey)
apiKey - the api key to usepublic MailChimpClientBuilder withOAuth2Authentication(String accessToken)
accessToken - the access token to usepublic MailChimpClientBuilder withApiBase(String apiBase)
apiBase - the api basepublic MailChimpClient build()
Copyright © 2020. All rights reserved.