コード例 #1
0
        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);
        }
コード例 #2
0
 public BasicInsightResponse GetNumberInsightBasic(BasicNumberInsightRequest request, Credentials creds = null)
 {
     return(GetNumberInsightBasicAsync(request, creds).GetAwaiter().GetResult());
 }