Пример #1
0
        /// <summary>
        /// List messaging profile phone numbers
        /// </summary>
        public void List()
        {
            var listOptions = new ListMessagingProfilesPhoneNumbersOptions();

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

            var requestOptions = new RequestOptions
            {
                ApiKey = YOURAPIKEY
            };

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

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

            Console.WriteLine(JsonConvert.SerializeObject(messagingProfile));
        }
Пример #2
0
 /// <inheritdoc/>
 public async Task <TelnyxList <MessagingProfile> > ListAsync(ListMessagingProfilesPhoneNumbersOptions listOptions = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await this.ListEntitiesAsync(listOptions, requestOptions, cancellationToken));
 }
Пример #3
0
 /// <inheritdoc/>
 public TelnyxList <MessagingProfile> List(ListMessagingProfilesPhoneNumbersOptions listOptions = null, RequestOptions requestOptions = null)
 {
     return(this.ListEntities(listOptions, requestOptions));
 }
Пример #4
0
 /// <inheritdoc/>
 public TelnyxList <MessagingPhoneNumber> List(string id, ListMessagingProfilesPhoneNumbersOptions listOptions = null, RequestOptions requestOptions = null)
 {
     return(this.ListNestedEntities(id, listOptions, requestOptions));
 }