Beispiel #1
0
        /// <summary>
        /// List phone number
        /// </summary>
        public void ListNumberOrder()
        {
            var listOptions = new MessagingPhoneNumerListOptions();

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

            var requestOptions = new RequestOptions
            {
                ApiKey = YOURAPIKEY
            };

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

            var messagingList = this.service.List(listOptions, requestOptions);

            Console.WriteLine(JsonConvert.SerializeObject(messagingList));
        }
Beispiel #2
0
 /// <inheritdoc/>
 public async Task <TelnyxList <MessagingPhoneNumber> > ListAsync(MessagingPhoneNumerListOptions listOptions = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await this.ListEntitiesAsync(listOptions, requestOptions, cancellationToken));
 }
Beispiel #3
0
 /// <inheritdoc/>
 public TelnyxList <MessagingPhoneNumber> List(MessagingPhoneNumerListOptions listOptions = null, RequestOptions requestOptions = null)
 {
     return(this.ListEntities(listOptions, requestOptions));
 }