public CampaignProvider(IRestService restService, IAccountSettings accountSettings)
        {
            _restService = restService;
            _accountSettings = accountSettings;

            _api = accountSettings.GetSetting("MailChimpApi");
            _listId = accountSettings.GetSetting("MailChimpMasterListId");
        }
        public SegmentProvider(IRestService restService, IAccountSettings accountSettings)
        {
            Check.If(restService).IsNotNull();
            Check.If(accountSettings).IsNotNull();

            _restService = restService;
            _api = accountSettings.GetSetting("MailChimpApi");
        }
Пример #3
0
        public EmailProvider(IRestService restService, ILogger logger, IAccountSettings accountSettings)
        {
            Check.If(restService).IsNotNull();
            Check.If(logger).IsNotNull();
            Check.If(accountSettings).IsNotNull();

            _restService = restService;
            _logger = logger;

            _api = accountSettings.GetSetting("MailChimpApi");
        }