/// <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)); }
/// <inheritdoc/> public async Task <TelnyxList <MessagingProfile> > ListAsync(ListMessagingProfilesPhoneNumbersOptions listOptions = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(await this.ListEntitiesAsync(listOptions, requestOptions, cancellationToken)); }
/// <inheritdoc/> public TelnyxList <MessagingProfile> List(ListMessagingProfilesPhoneNumbersOptions listOptions = null, RequestOptions requestOptions = null) { return(this.ListEntities(listOptions, requestOptions)); }
/// <inheritdoc/> public TelnyxList <MessagingPhoneNumber> List(string id, ListMessagingProfilesPhoneNumbersOptions listOptions = null, RequestOptions requestOptions = null) { return(this.ListNestedEntities(id, listOptions, requestOptions)); }