Beispiel #1
0
        /// <summary>
        /// Update messaging profile
        /// </summary>
        public void Update()
        {
            var updateOptions = new MessagingProfileUpdate
            {
                Name = "Summer Campaign"
            };

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

            var requestOptions = new RequestOptions
            {
                ApiKey = YOURAPIKEY
            };

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

            var messagingProfile = this.service.Update(MessagingProfileId, updateOptions, requestOptions);

            Console.WriteLine(JsonConvert.SerializeObject(messagingProfile));
        }
Beispiel #2
0
 /// <inheritdoc/>
 public MessagingProfile Update(string id, MessagingProfileUpdate updateOptions, RequestOptions requestOptions = null)
 {
     return(this.UpdateEntity(id, updateOptions, requestOptions));
 }
Beispiel #3
0
 /// <inheritdoc/>
 public async Task <MessagingProfile> UpdateAsync(string id, MessagingProfileUpdate updateOptions, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await this.UpdateEntityAsync(id, updateOptions, requestOptions, cancellationToken));
 }