### Create and Use Java Address Validation Client Source: https://github.com/experianplc/edq-data-validation-sdks/blob/main/README.md Provides a Java example for creating an address validation client, searching for an address using a single-line input, and formatting the selected address. Remember to replace placeholders. ```java // Create a client final Configuration configuration = AddressConfiguration .newBuilder("YOUR AUTHENTICATION TOKEN") .setTransactionId("YOUR REFERENCE ID") .useDataset(Dataset.AU_ADDRESS) .useMaxSuggestions(5) .build(); var client = ExperianDataValidation.GetAddressClient(configuration); // Search for an address final SearchResult result = client.search(SearchType.SINGLELINE, "56 Queens R"); // Pick the first address in the list of suggestions final var globalAddressKey = result.getSuggestions().get(0).getGlobalAddressKey(); // Format the selected address with default layout final var result = client.format(globalAddressKey); // Do something with the result ``` -------------------------------- ### Create and Use .NET Address Validation Client Source: https://github.com/experianplc/edq-data-validation-sdks/blob/main/README.md Demonstrates how to create an address validation client in .NET, search for an address, and format the result. Ensure you replace placeholders with your authentication token and reference ID. ```csharp // Create a client var configuration = AddressConfiguration .NewBuilder("YOUR AUTHENTICATION TOKEN") .SetTransactionId("YOUR REFERENCE ID") .UseDataset(Dataset.GbAddress) .UseMaxSuggestions(10) .Build(); var client = ExperianDataValidation.GetAddressClient(configuration); // Search for an address var searchResult = client.Search(SearchType.Autocomplete, "160 Blackfriars Rd"); // Pick the first address in the list of suggestions var globalAddressKey = searchResult.Suggestions.First().GlobalAddressKey; // Format the selected address with default layout var result = client.Format(globalAddressKey); // Do something with the result ``` -------------------------------- ### Validate Email with .NET SDK Source: https://github.com/experianplc/edq-data-validation-sdks/blob/main/README.md Shows how to create an email validation client in .NET and validate an email address asynchronously. Includes options to include metadata in the response. ```csharp // Create a client var configuration = EmailConfiguration .NewBuilder("YOUR AUTHENTICATION TOKEN") .SetTransactionId("YOUR REFERENCE ID") .IncludeMetadata() .Build(); var emailClient = ExperianDataValidation.GetEmailClient(configuration); // Validate an email address var result = emailClient.ValidateAsync("support@experian.com").GetAwaiter().GetResult(); if (result.Confidence == Confidence.Verified) { // Do something with the result } ``` -------------------------------- ### Search and Format Address in TypeScript Source: https://github.com/experianplc/edq-data-validation-sdks/blob/main/README.md This TypeScript snippet demonstrates how to search for an address and then format the selected suggestion. It requires specifying datasets and max suggestions. ```typescript // Create a client const config = new AddressConfiguration( "YOUR AUTHENTICATION TOKEN", { transactionId: "YOUR REFERENCE ID", datasets: [Datasets.AuAddress], maxSuggestions: 5 } ); const client = new AddressClient(config); // Search for an address const searchResult = await client.search("56 Queens R"); // Pick the first address in the list of suggestions const globalAddressKey = searchResult.suggestions[0].globalAddressKey; // Format the selected address with default layout const result = await client.format(globalAddressKey); // Do something with the result ``` -------------------------------- ### Validate Phone Number with .NET SDK Source: https://github.com/experianplc/edq-data-validation-sdks/blob/main/README.md Illustrates creating a phone validation client in .NET and validating a phone number asynchronously. The snippet includes options for including metadata and checking the phone type. ```csharp // Create a client var configuration = PhoneConfiguration .NewBuilder("YOUR AUTHENTICATION TOKEN") .SetTransactionId("YOUR REFERENCE ID") .IncludeMetadata() .Build(); var client = ExperianDataValidation.GetPhoneClient(configuration); // Validate a phone number var result = client.ValidateAsync("+442074987788").GetAwaiter().GetResult(); if (result.PhoneType == Confidence.Landline) { // Do something with the result } ``` -------------------------------- ### Validate Email Address in TypeScript Source: https://github.com/experianplc/edq-data-validation-sdks/blob/main/README.md This TypeScript snippet shows how to validate an email address. Ensure you provide your authentication token and reference ID. ```typescript // Create a client const config = new EmailConfiguration( "YOUR AUTHENTICATION TOKEN", { transactionId: "YOUR REFERENCE ID", includeMetadata: true } ); const client = new EmailClient(config); // Validate an email address const result = await client.validate("support@experian.com"); if (result.getConfidence() == Confidence.VERIFIED) { // Do something with the result } ``` -------------------------------- ### Validate Email Address in Java Source: https://github.com/experianplc/edq-data-validation-sdks/blob/main/README.md Use this snippet to validate an email address using the Java SDK. Ensure you replace placeholders with your actual authentication token and reference ID. ```java // Create a client final Configuration configuration = EmailConfiguration .newBuilder("YOUR AUTHENTICATION TOKEN") .setTransactionId("YOUR REFERENCE ID") .includeMetadata() .build(); final EmailClient client = ExperianDataValidation.getEmailClient(configuration); // Validate an email address final var result = client.validate("support@experian.com"); if (result.getConfidence() == Confidence.VERIFIED) { // Do something with the result } ``` -------------------------------- ### Validate Phone Number in Java Source: https://github.com/experianplc/edq-data-validation-sdks/blob/main/README.md Use this snippet to validate a phone number using the Java SDK. Replace placeholders with your actual authentication token and reference ID. ```java // Create a client final Configuration configuration = PhoneConfiguration .newBuilder("YOUR AUTHENTICATION TOKEN") .setTransactionId("YOUR REFERENCE ID") .includeMetadata() .build(); final PhoneClient client = ExperianDataValidation.getPhoneClient(configuration); // Validate a phone number final var result = client.validate("+442074987788"); if (result.getConfidence() == Confidence.VERIFIED) { // Do something with the result } ``` -------------------------------- ### Validate Phone Number in TypeScript Source: https://github.com/experianplc/edq-data-validation-sdks/blob/main/README.md This TypeScript snippet demonstrates how to validate a phone number. Replace placeholders with your authentication token and reference ID. ```typescript // Create a client const config = new PhoneConfiguration( "YOUR AUTHENTICATION TOKEN", { transactionId: "YOUR REFERENCE ID", includeMetadata: true } ); const client = new PhoneClient(config); // Validate a phone number const result = await client.validate("+442074987788"); if (result.getConfidence() == Confidence.VERIFIED) { // Do something with the result } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.