コード例 #1
0
        /// <summary>
        /// Update phone number
        /// </summary>
        public void UpdatePhoneNumber()
        {
            var id            = "+18665550001";
            var guid          = "3fa85f64-5717-4562-b3fc-2c963f66afa6";
            var updateOptions = new MessagingPhoneNumberUpdate
            {
                MessagingProfileId = new Guid(guid)
            };

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

            var numberOrder = this.service.Update(id, updateOptions);

            Console.WriteLine(JsonConvert.SerializeObject(numberOrder));
        }
コード例 #2
0
 /// <inheritdoc/>
 public async Task <MessagingPhoneNumber> UpdateAsync(string id, MessagingPhoneNumberUpdate updateOptions, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await this.UpdateEntityAsync(id, updateOptions, requestOptions, cancellationToken));
 }
コード例 #3
0
 /// <inheritdoc/>
 public MessagingPhoneNumber Update(string id, MessagingPhoneNumberUpdate updateOptions, RequestOptions requestOptions = null)
 {
     return(this.UpdateEntity(id, updateOptions, requestOptions));
 }