public Task <NumbersSearchResponse> GetAvailableNumbersAsync(NumberSearchRequest request, Credentials creds = null)
 {
     return(ApiRequest.DoGetRequestWithQueryParametersAsync <NumbersSearchResponse>(
                ApiRequest.GetBaseUri(ApiRequest.UriType.Rest, "/number/search"),
                ApiRequest.AuthType.Query,
                request,
                creds ?? Credentials
                ));
 }
 public NumbersSearchResponse GetOwnedNumbers(NumberSearchRequest request, Credentials creds = null)
 {
     return(ApiRequest.DoGetRequestWithQueryParameters <NumbersSearchResponse>(
                ApiRequest.GetBaseUri(ApiRequest.UriType.Rest, "/account/numbers"),
                ApiRequest.AuthType.Query,
                request,
                creds ?? Credentials
                ));
 }
 public NumbersSearchResponse GetAvailableNumbers(NumberSearchRequest request, Credentials creds = null)
 {
     return(GetAvailableNumbersAsync(request, creds).GetAwaiter().GetResult());
 }