Exemple #1
0
        /// <summary>
        /// Set a ready campaign to be sent immediately or in the future
        /// Heads Up!: The SendDate parameter should be set by considering the time-zone set in your Sendloop account. Please be sure that you have set the correct time-zone.
        /// </summary>
        /// <param name="send"></param>
        /// <returns></returns>
        public async Task <ResultBase> SendAsync(ParamCampaignSend send)
        {
            var arry = new Dictionary <string, string> {
                { nameof(send.SendDate), send.SendDate },
                { nameof(send.CampaignID), send.CampaignID.ToString() },
            };

            return(await Http.Value.PostAsync <ResultBase>(SendloopAddress.CampaignSend, arry));
        }
Exemple #2
0
 /// <summary>
 /// Set a ready campaign to be sent immediately or in the future
 /// Heads Up!: The SendDate parameter should be set by considering the time-zone set in your Sendloop account. Please be sure that you have set the correct time-zone.
 /// </summary>
 /// <param name="send"></param>
 /// <returns></returns>
 public ResultBase Send(ParamCampaignSend send)
 => SendAsync(send).GetAwaiter().GetResult();