UnofficialTruliooSDK 0.2.0.1
dotnet add package UnofficialTruliooSDK --version 0.2.0.1
NuGet\Install-Package UnofficialTruliooSDK -Version 0.2.0.1
<PackageReference Include="UnofficialTruliooSDK" Version="0.2.0.1" />
paket add UnofficialTruliooSDK --version 0.2.0.1
#r "nuget: UnofficialTruliooSDK, 0.2.0.1"
// Install UnofficialTruliooSDK as a Cake Addin #addin nuget:?package=UnofficialTruliooSDK&version=0.2.0.1 // Install UnofficialTruliooSDK as a Cake Tool #tool nuget:?package=UnofficialTruliooSDK&version=0.2.0.1
Unofficial Trulioo C# SDK.
This is the link to the Official SDK
Authentication
In order to setup authentication and initialization of the API client, you need the following information.
Parameter | Description |
---|---|
mode | Trulioo Mode |
xTruliooApiKey | Trulioo Api Key |
API client can be initialized as following.
var client = new TruliooSDK.TruliooSDKClient(Mode.Trial, "xTruliooApiKey");
Class Reference
List of Controllers
ConnectionController
Get singleton instance
The singleton instance of the ConnectionController
class can be accessed from the API Client.
var connection = client.Connection;
GetTestAuthentication
This method enables you to check if your credentials are valid.
Example Usage
var result = await connection.GetTestAuthenticationAsync();
ConfigurationController
Get singleton instance
The singleton instance of the ConfigurationController
class can be accessed from the API Client.
var configuration = client.Configuration;
GetCountryCodes
This method retrieves all the countries that are available to perform a verification.`
Parameters
Parameter | Tags | Description |
---|---|---|
configurationName | Optional DefaultValue |
Defaults to "Identity Verification". |
Example Usage
var result = await configuration.GetCountryCodesAsync();
GetTestEntities
Gets the test entities configured for your product and country.
Parameters
Parameter | Tags | Description |
---|---|---|
configurationName | Optional DefaultValue |
Defaults to "Identity Verification". |
country | Required |
Country enum |
Example Usage
var result = await configuration.GetTestEntitiesAsync(Country.GreatBritain);
GetFields
Generates json schema for the API, the schema is dynamic based on the country and configuration you are using json-schema.org
Parameters
Parameter | Tags | Description |
---|---|---|
country | Required |
Country enum |
configurationName | Optional DefaultValue |
Defaults to "Identity Verification". |
Example Usage
var result = await configuration.GetFieldsAsync(Country.GreatBritain);
GetRecommendedFields
Generates json schema for the API, the schema is dynamic based on the recommendedFields country and account you are using.
Parameters
Parameter | Tags | Description |
---|---|---|
country | Required |
Country enum |
configurationName | Optional DefaultValue |
Defaults to "Identity Verification". |
Example Usage
var result = await configuration.GetRecommendedFieldsAsync(Country.GreatBritain);
GetConsents
This method retrieves the consents required for the data sources currently configured in your account configuration.
The response for this method contains a collection of string that Verify method's ConsentForDataSources field expects to perform a verification using those data sources.
Parameters
Parameter | Tags | Description |
---|---|---|
country | Required |
Country enum |
configurationName | Optional DefaultValue |
Defaults to "Identity Verification". |
Example Usage
var result = await configuration.GetConsentsAsync(Country.GreatBritain);
GetDetailedConsents
This method retrieves details about consents required for data sources currently configured in your account configuration.
The response for this method contains a collection of objects.
Parameters
Parameter | Tags | Description |
---|---|---|
country | Required |
Call CountryCodes to get the countries available to you. |
configurationName | Optional DefaultValue |
Defaults to Identity Verification |
Example Usage
var result = await configuration.GetDetailedConsentsAsync(Country.GreatBritain);
GetCountrySubdivisions
Gets the provinces states or other subdivisions for a country, mostly matches ISO 3166-2
Parameters
Parameter | Tags | Description |
---|---|---|
country | Required |
Country enum |
Example Usage
var result = await configuration.GetCountrySubdivisionsAsync(Country.GreatBritain);
GetDatasources
Gets datasource groups configured for your product and country.
Parameters
Parameter | Tags | Description |
---|---|---|
configurationName | Optional DefaultValue |
Defaults to "Identity Verification". |
country | Required |
Country enum |
Example Usage
var result = await configuration.GetDataSourcesAsync(Country.GreatBritain);
VerificationsController
Get singleton instance
The singleton instance of the VerificationsController
class can be accessed from the API Client.
CreateVerify
Calling this method will perform a verification.
Parameters
Parameter | Tags | Description |
---|---|---|
verifyRequest | Required |
The verify request body |
Example Usage
var verifyRequest = new VerifyRequest
{
AcceptTruliooTermsAndConditions = true,
Country = Country.GreatBritain,
CustomerReferenceId = "Test",
DataFields = new DataFields
{
PersonInfo = new PersonInfo(),
Location = new Location(),
Communication = new Communication(),
Passport = new Passport()
}
};
verifyRequest.DataFields.PersonInfo.FirstGivenName = "Julia";
verifyRequest.DataFields.PersonInfo.FirstSurName = "Audi";
verifyRequest.DataFields.PersonInfo.MiddleName = "Ronald";
verifyRequest.DataFields.PersonInfo.DayOfBirth =26;
verifyRequest.DataFields.PersonInfo.MonthOfBirth = 1;
verifyRequest.DataFields.PersonInfo.YearOfBirth = 1979;
verifyRequest.DataFields.Location.BuildingNumber = "12";
verifyRequest.DataFields.Location.BuildingName = "Beck";
verifyRequest.DataFields.Location.UnitNumber = 1;
verifyRequest.DataFields.Location.StreetName = "Moorfoot";
verifyRequest.DataFields.Location.StreetType = "Way";
verifyRequest.DataFields.Location.PostalCode = "L33 1WZ";
var result = await truliooClient.Verifications.CreateVerifyAsync(verifyRequest);
GetTransactionRecord
This method is used to retrieve the request and results of a verification performed using the verify method.
Parameters
Parameter | Tags | Description |
---|---|---|
id | Required |
The TransactionRecordID from the Verify response, this will be a GUID |
Example Usage
string id = "id";
var result = await verifications.GetTransactionRecordAsync(id);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.