travel.wink.sdk.affiliate.syndication.AffiliateWinkLinksSDKConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of affiliate-winklinks-sdk-java Show documentation
Show all versions of affiliate-winklinks-sdk-java Show documentation
Java SDK for the Wink Affiliate WinkLinks API
package travel.wink.sdk.affiliate.syndication;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;
import travel.wink.sdk.affiliate.syndication.api.SyndicationPublisherApi;
import travel.wink.sdk.affiliate.syndication.invoker.ApiClient;
@RequiredArgsConstructor
@Configuration
public class AffiliateWinkLinksSDKConfiguration {
private final WebClient webClient;
@Bean
public ApiClient apiClient() {
return new ApiClient(this.webClient);
}
@Bean
public SyndicationPublisherApi syndicationPublisherApi() {
return new SyndicationPublisherApi(apiClient());
}
}