Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Example Request in C#
- //Example Username: JoeNapoli_API_Demo, Example Password: 05uZuPRCyPi!6
- var truliooClient = new TruliooApiClient("JoeNapoli_API_Demo", “05uZuPRCyPi!6");
- VerifyRequest request = new VerifyRequest()
- {
- AcceptTruliooTermsAndConditions = true,
- Demo = true,
- CleansedAddress = false,
- ConfigurationName = "Identity Verification",
- ConsentForDataSources = new string[]
- {
- "Australia Driver License",
- "Australia Passport",
- "Birth Registry",
- "Visa Verification",
- "DVS Driver License Search",
- "DVS Medicare Search",
- "DVS Passport Search",
- "DVS Visa Search",
- "DVS ImmiCard Search",
- "DVS Citizenship Certificate Search",
- "DVS Certificate of Registration by Descent Search",
- "Credit Agency"
- },
- CountryCode = "AU",
- DataFields = new DataFields()
- {
- PersonInfo = new PersonInfo()
- {
- FirstGivenName = "John",
- MiddleName = "Henry",
- FirstSurName = "Smith",
- DayOfBirth = 5,
- MonthOfBirth = 3,
- YearOfBirth = 1983,
- Gender = "M"
- },
- Location = new Location()
- {
- BuildingNumber = "10",
- UnitNumber = "3",
- StreetName = "Lawford",
- StreetType = "st",
- Suburb = "Doncaster",
- StateProvinceCode = "VIC",
- PostalCode = "3108"
- },
- Communication = new Communication()
- {
- Telephone = "03 9896 8785",
- EmailAddress = "testpersonAU@gdctest.com"
- },
- DriverLicence = new DriverLicence()
- {
- Number = "076310691",
- State = "VIC",
- DayOfExpiry = 3,
- MonthOfExpiry = 4,
- YearOfExpiry = 2021
- },
- NationalIds = new NationalId[]
- {
- new NationalId()
- {
- Number = "5643513953",
- Type = "Health"
- }
- },
- Passport = new Passport()
- {
- Mrz1 = "P<SAGSMITH<<JOHN<HENRY<<<<<<<<<<<<<<<<<<<<<<",
- Mrz2 = "N1236548<1AUS8303052359438740809<<<<<<<<<<54",
- Number = "N1236548",
- DayOfExpiry = 5,
- MonthOfExpiry = 12,
- YearOfExpiry = 2018
- },
- CountrySpecific = new CountrySpecific()
- {
- { "AU",
- new Dictionary<string, string>()
- {
- { "AuImmiCardNumber", "EIS123456" },
- { "CitizenshipAcquisitionDay", "15" },
- { "CitizenshipAcquisitionMonth", "4" },
- { "CitizenshipAcquisitionYear", "1987" },
- { "CountryOfBirth", "Australia" },
- { "FamilyNameAtBirth", "Smith" },
- { "MedicareColor", "Blue" },
- { "MedicareMonthOfExpiry", "12" },
- { "MedicareReference", "2" },
- { "MedicareYearOfExpiry", "2017" },
- { "PassportCountry", "Australia" },
- { "PlaceOfBirth", "Melbourne" },
- { "RegistrationNumber", "565659" },
- { "RegistrationState", "NSW" },
- { "StockNumber", "ACD1234567" }
- }
- }
- }
- }
- };
- VerifyResult result = await truliooClient.Verification.VerifyAsync(request);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement