An easy-to-use interface to the Data Soap API, for building bespoke solutions quickly using our data-cleaning and validation services.
Back to SDKsThe SDK is distributed via NuGet, the .NET package manager.
NuGet packageDataSoap_SDK.Install-Package DataSoap_SDK.Once installed, bring the SDK into scope with a using statement for the DataSoap_SDK namespace:
using DataSoap_SDK;
To make requests, use DataSoapApiV2, which takes your private API token:
using (var ds = new DataSoapApiV2("your_private_token")){}
The client covers most of the Validation API's functionality.
using (var ds = new DataSoapApiV2("your_private_token")){ds.OnException((ex) =>{// Handle exceptions here (mainly HttpClient)});// Perform the lookup - uses credit depending on availability and data typevar result = await ds.ValidateAsync("phone_number_or_email");// Get the valid status from the resultvar valid = result.Valid;// The result also contains additional detail on the data,// as well as each individual lookup performed}