public PasteHtmlEmailCreator(IExactTargetConfiguration config)
     : this(new DataExtensionClient(config),
             new TriggeredSendDefinitionClient(config),
             new EmailRequestClient(config),
             new DeliveryProfileClient(config))
 {
 }
 public static SoapClient Manufacture(IExactTargetConfiguration config)
 {
     var client = new SoapClient(config.SoapBinding ?? "ExactTarget.Soap", config.EndPoint);
     if (client.ClientCredentials == null) return null;
     client.ClientCredentials.UserName.UserName = config.ApiUserName;
     client.ClientCredentials.UserName.Password = config.ApiPassword;
     return client;
 }
 public TriggeredEmailCreator(IExactTargetConfiguration config)
 {
     _triggeredSendDefinitionClient = new TriggeredSendDefinitionClient(config);
     _dataExtensionClient = new DataExtensionClient(config);
     _emailTemplateClient = new EmailTemplateClient(config);
     _emailRequestClient = new EmailRequestClient(config);
     _deliveryProfileClient = new DeliveryProfileClient(config);
 }
Exemple #4
0
 public PasteHtmlEmailCreator(IExactTargetConfiguration config)
     : this(new DataExtensionClient(config),
            new TriggeredSendDefinitionClient(config),
            new EmailRequestClient(config),
            new DeliveryProfileClient(config)
            )
 {
 }
Exemple #5
0
 private static void GetClient(IExactTargetConfiguration config)
 {
     _SharedClent = new SharedRequestClient(config);
     triggeredSendDefinitionClient = new TriggeredSendDefinitionClient(config);
     _dataExtensionClient          = new DataExtensionClient(config);
     _deliveryProfileClient        = new DeliveryProfileClient(config);
     _Client = SoapClientFactory.Manufacture(config);
 }
 public DynamicTriggeredEmailCreator(IExactTargetConfiguration config)
 {
     triggeredSendDefinitionClient = new TriggeredSendDefinitionClient(config);
     dataExtensionClient           = new DataExtensionClient(config);
     emailTemplateClient           = new EmailTemplateClient(config);
     emailRequestClient            = new EmailRequestClient(config);
     deliveryProfileClient         = new DeliveryProfileClient(config);
 }
Exemple #7
0
        public static SoapClient Manufacture(IExactTargetConfiguration config)
        {
            var client = new SoapClient(config.SoapBinding ?? "ExactTarget.Soap", config.EndPoint);

            if (client.ClientCredentials == null)
            {
                return(null);
            }
            client.ClientCredentials.UserName.UserName = config.ApiUserName;
            client.ClientCredentials.UserName.Password = config.ApiPassword;
            return(client);
        }
 public DataExtensionClient(IExactTargetConfiguration config)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
     _sharedCoreRequestClient = new SharedCoreRequestClient(config);
 }
 public EmailTemplateClient(IExactTargetConfiguration config)
 {
     _client = SoapClientFactory.Manufacture(config);
     _config = config;
 }
 public SharedCoreRequestClient(IExactTargetConfiguration config)
 {
     _client = SoapClientFactory.Manufacture(config);
     _config = config;
 }
Exemple #11
0
 public TriggeredEmailCreator(IExactTargetConfiguration config)
 {
     _config = config;
 }
 public EmailTrigger(IExactTargetConfiguration config)
 {
     _config = config;
 }
 public TriggeredSendDefinitionClient(IExactTargetConfiguration config)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
     _sharedCoreRequestClient = new SharedRequestClient(config);
 }
 public DeliveryProfileClient(IExactTargetConfiguration config)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
 }
Exemple #15
0
 public DeliveryProfileClient(IExactTargetConfiguration config)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
 }
 public TriggeredEmailCreator(IExactTargetConfiguration config)
 {
     _config = config;
 }
Exemple #17
0
 public EmailTrigger(IExactTargetConfiguration config)
 {
     _config = config;
 }
Exemple #18
0
        private static void SendMail(TriggeredSendDataModel triggerData, List <SubscriberDataModel> subscriberlist, IExactTargetConfiguration config)
        {
            var emailTrigger = new EmailTrigger(config);
            var lst          = GetSubscriberList(subscriberlist, triggerData);

            emailTrigger.TriggerCustom(triggerData, lst);
        }
 public TriggeredSendDefinitionClient(IExactTargetConfiguration config)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
     _sharedCoreRequestClient = new SharedCoreRequestClient(config);
 }
Exemple #20
0
 public DataExtensionClient(IExactTargetConfiguration config)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
     _sharedCoreRequestClient = new SharedCoreRequestClient(config);
 }
Exemple #21
0
 public SharedRequestClient(IExactTargetConfiguration config)
 {
     _client = SoapClientFactory.Manufacture(config);
     _config = config;
 }
Exemple #22
0
 public EmailTemplateClient(IExactTargetConfiguration config)
 {
     _client = SoapClientFactory.Manufacture(config);
     _config = config;
 }