Beispiel #1
0
        private static void PushCampaignExample(IRepository <ActionPushCampaign> actionPushRepo)
        {
            var pushEvent = new ActionPushCampaign
            {
                CampaignId = CAMPAIGN_ID,
                Channels   = { CHANNEL_ID }, // You can push to several channels in one go if you wish.
                Targets    = { SEND_TO },    // Note that is possible to send to more than one target at a time.
                Execute    = true
            };

            actionPushRepo.Add(pushEvent);

            Console.WriteLine(
                "Sent campaign {0} to channel(s) {1}",
                CAMPAIGN_ID,
                String.Join(", ", pushEvent.Channels));
        }
 public ActionPushCampaign Submit(int accountId, ActionPushCampaign action)
 {
     return(Api.Post($"account/{accountId}/action-pushCampaign", action));
 }
 public ActionPushCampaign Submit(ActionPushCampaign action)
 {
     return(Submit(CurrentAccount, action));
 }
Beispiel #4
0
        public ActionPushCampaign Submit(int accountId, ActionPushCampaign action)
        {
            var rval = TDClient.Add(LIST, new { accountId }, action);

            return(rval);
        }