public async Task <BasicInsightResponse> GetNumberInsightBasicAsync(BasicNumberInsightRequest request, Credentials creds = null) { var response = await ApiRequest.DoGetRequestWithQueryParametersAsync <BasicInsightResponse>( ApiRequest.GetBaseUri(ApiRequest.UriType.Api, "/ni/basic/json"), ApiRequest.AuthType.Query, request, creds ?? Credentials ); ValidateNumberInsightResponse(response); return(response); }
public BasicInsightResponse GetNumberInsightBasic(BasicNumberInsightRequest request, Credentials creds = null) { return(GetNumberInsightBasicAsync(request, creds).GetAwaiter().GetResult()); }