Class SinchClientConfig

java.lang.Object
es.kukenan.smartfi.microservice.communication.config.SinchClientConfig

@Configuration public class SinchClientConfig extends Object
Sinch client beans configuration.
  • Constructor Details

    • SinchClientConfig

      public SinchClientConfig()
  • Method Details

    • sinchSmsService

      @Bean @RefreshScope public com.sinch.sdk.domains.sms.SMSService sinchSmsService(@Value("${sinch.client.sms.projectId}") String projectId, @Value("${sinch.client.sms.keyId}") String keyId, @Value("${sinch.client.sms.keySecret}") String keySecret)
      Client to connect with Sinch SMS API.
      Parameters:
      projectId - Sinch project identifier
      keyId - Sinch project key identifier
      keySecret - Key secret
      Returns:
      The SMSService