예제 #1
0
        /// <summary>
        /// Given the search keys and specified attributes, a match type is determined and the enriched data is returned.
        /// </summary>
        /// <param name="serviceClient">The service client instance.</param>
        /// <param name="authToken">The Auth-Token header to authenticate the service.</param>
        /// <param name="country">The 3-character ISO country code. Examples: USA, GBR or AUS.</param>
        /// <param name="headers">The headers for the request.</param>
        /// <param name="request">The body of the request.</param>
        /// <returns>EnrichmentV2Response</returns>
        public static async Task <EnrichmentV2Response> PostEnrichmentV2ByCountryPostAsync(this ServiceClient serviceClient, string authToken, string country, DataQualityEnrichHeaders headers, EnrichmentV2Request request)
        {
            var path = DQProduction + EnrichmentV2.Replace("#", country);

            return(await serviceClient.SendRequestAsync <EnrichmentV2Request, DataQualityHeaders, EnrichmentV2Response>(path, authToken, headers, request).ConfigureAwait(false));
        }
예제 #2
0
 /// <summary>
 /// Posts a phone number to the service to be validated and, once completed, returns the results of the validation.
 /// </summary>
 /// <param name="serviceClient">The service client instance.</param>
 /// <param name="authToken">The Auth-Token header to authenticate the service.</param>
 /// <param name="headers">The headers for the request.</param>
 /// <param name="request">The body of the request.</param>
 /// <returns>PhoneValidationV2Response</returns>
 public static async Task <PhoneValidationV2Response> PhoneValidationV2PostAsync(this ServiceClient serviceClient, string authToken, DataQualityEnrichHeaders headers, PhoneValidationV2Request request)
 {
     return(await serviceClient.SendRequestAsync <PhoneValidationV2Request, DataQualityHeaders, PhoneValidationV2Response>(DQProduction + EmailValidationV1, authToken, headers, request).ConfigureAwait(false));
 }