Example #1
0
        /// <summary>
        /// Create messaging profile
        /// </summary>
        public void Create()
        {
            var createOptions = new NewMessagingProfile
            {
                Name = "Summer Campaign"
            };

            Console.WriteLine(JsonConvert.SerializeObject(createOptions));

            var requestOptions = new RequestOptions
            {
                ApiKey = YOURAPIKEY
            };

            Console.WriteLine(JsonConvert.SerializeObject(requestOptions));

            var messagingProfile = this.service.Create(createOptions, requestOptions);

            Console.WriteLine(JsonConvert.SerializeObject(messagingProfile));
        }
Example #2
0
 /// <inheritdoc/>
 public Task <MessagingProfile> CreateAsync(NewMessagingProfile createOptions, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.CreateEntityAsync(createOptions, requestOptions, cancellationToken));
 }
Example #3
0
 /// <inheritdoc/>
 public MessagingProfile Create(NewMessagingProfile createOptions, RequestOptions requestOptions = null)
 {
     return(this.CreateEntity(createOptions, requestOptions));
 }