Exemple #1
0
 public async Task TriggerBroadcast()
 {
     var customerIo = new CustomerIo(SiteId, ApiKey);
     await customerIo.TriggerBroadcastAsync(
         BroadcastCampaignId,
         new
     {
         Name    = "Name 1",
         TestKey = "Value 2"
     });
 }
Exemple #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 } });
 }