Esempio n. 1
0
 public async Task TriggerBroadcast()
 {
     var customerIo = new CustomerIo(SiteId, ApiKey);
     await customerIo.TriggerBroadcastAsync(
         BroadcastCampaignId,
         new
     {
         Name    = "Name 1",
         TestKey = "Value 2"
     });
 }
Esempio n. 2
0
 public async Task TriggerBroadcastWithRecipientFilter()
 {
     var customerIo = new CustomerIo(SiteId, ApiKey);
     await customerIo.TriggerBroadcastAsync(
         BroadcastCampaignId,
         new
     {
         Name    = "Name 1",
         TestKey = "Value 2"
     },
         new { segment = new { id = BroadcastSegmentId } });
 }