Ejemplo n.º 1
0
 public Test(string apikey)
 {
     this.apikey =  apikey;
         this.api = new ApiWrapper();
         this.api.setCurrentApiKey(this.apikey);
 }
Ejemplo n.º 2
0
        public MailChimp()
        {
            var config = MailChimpConfiguration.Load();

            _wrapper = new ApiWrapper();
            _configApiKey = config.APIKey;
            _listName = config.ListName;
            _retryCount = config.RetryCount;
            _listColumns = config.ListColumns;
        }
Ejemplo n.º 3
0
        public MailChimp(
            string apiKey,
            string listName,
            int retryCount,
            IEnumerable<MailChimpColumn> listColumns)
        {
            _wrapper = new ApiWrapper();
            _configApiKey = apiKey;
            _listName = listName;
            _retryCount = retryCount;
            _listColumns = new List<MCMergeVar>();

            foreach (var column in listColumns)
            {
                _listColumns.Add(new MCMergeVar
                {
                    name = column.Name,
                    req = column.Required,
                    tag = column.Tag
                });
            }
        }
 private void InitAPI()
 {
     api = new ApiWrapper();
     api.setCurrentApiKey( MailChimpAPIKeySetting );
 }