Beispiel #1
0
        /// <summary>
        /// Create a new subscriber list.
        /// </summary>
        /// <returns></returns>
        public async Task <SubscriberListCreate> CreateAsync(ParamSubscriberListCreate param)
        {
            var list = new Dictionary <string, string> {
                { nameof(param.Name), param.Name },
                { nameof(param.OptIn), param.OptIn.ToString() }
            };

            return(await Http.Value.PostAsync <SubscriberListCreate>(SendloopAddress.SubsriberListCreate, list));
        }
Beispiel #2
0
 /// <summary>
 /// Create a new subscriber list.
 /// </summary>
 /// <returns></returns>
 public SubscriberListCreate Create(ParamSubscriberListCreate param)
 => CreateAsync(param).GetAwaiter().GetResult();