Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
1,106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.66 KB | None | 0 0
  1. //Example Request in C#
  2. //Example Username: JoeNapoli_API_Demo, Example Password: 05uZuPRCyPi!6
  3. var truliooClient = new TruliooApiClient("JoeNapoli_API_Demo", “05uZuPRCyPi!6");
  4. VerifyRequest request = new VerifyRequest()
  5.            {
  6.                AcceptTruliooTermsAndConditions = true,
  7.                Demo = true,
  8.                CleansedAddress = false,
  9.                ConfigurationName = "Identity Verification",
  10.                ConsentForDataSources = new string[]
  11.                    {
  12.                        "Australia Driver License",
  13.                        "Australia Passport",
  14.                        "Birth Registry",
  15.                        "Visa Verification",
  16.                        "DVS Driver License Search",
  17.                        "DVS Medicare Search",
  18.                        "DVS Passport Search",
  19.                        "DVS Visa Search",
  20.                        "DVS ImmiCard Search",
  21.                        "DVS Citizenship Certificate Search",
  22.                        "DVS Certificate of Registration by Descent Search",
  23.                        "Credit Agency"
  24.                    },
  25.                CountryCode = "AU",
  26.                DataFields = new DataFields()
  27.                {
  28.                    PersonInfo = new PersonInfo()
  29.                    {
  30.                        FirstGivenName = "John",
  31.                        MiddleName = "Henry",
  32.                        FirstSurName = "Smith",
  33.                        DayOfBirth = 5,
  34.                        MonthOfBirth = 3,
  35.                        YearOfBirth = 1983,
  36.                        Gender = "M"
  37.                    },
  38.                    Location = new Location()
  39.                    {
  40.                        BuildingNumber = "10",
  41.                        UnitNumber = "3",
  42.                        StreetName = "Lawford",
  43.                        StreetType = "st",
  44.                        Suburb = "Doncaster",
  45.                        StateProvinceCode = "VIC",
  46.                        PostalCode = "3108"
  47.                    },
  48.                    Communication = new Communication()
  49.                    {
  50.                        Telephone = "03 9896 8785",
  51.                        EmailAddress = "testpersonAU@gdctest.com"
  52.                    },
  53.                    DriverLicence = new DriverLicence()
  54.                    {
  55.                        Number = "076310691",
  56.                        State = "VIC",
  57.                        DayOfExpiry = 3,
  58.                        MonthOfExpiry = 4,
  59.                        YearOfExpiry = 2021
  60.                    },
  61.                    NationalIds = new NationalId[]
  62.                    {
  63.                        new NationalId()
  64.                        {
  65.                            Number = "5643513953",
  66.                            Type = "Health"
  67.                        }
  68.                    },
  69.                    Passport = new Passport()
  70.                    {
  71.                        Mrz1 = "P<SAGSMITH<<JOHN<HENRY<<<<<<<<<<<<<<<<<<<<<<",
  72.                        Mrz2 = "N1236548<1AUS8303052359438740809<<<<<<<<<<54",
  73.                        Number = "N1236548",
  74.                        DayOfExpiry = 5,
  75.                        MonthOfExpiry = 12,
  76.                        YearOfExpiry = 2018
  77.                    },
  78.                    CountrySpecific = new CountrySpecific()
  79.                    {
  80.                        { "AU",
  81.                            new Dictionary<string, string>()
  82.                            {
  83.                                { "AuImmiCardNumber", "EIS123456" },
  84.                                { "CitizenshipAcquisitionDay", "15" },
  85.                                { "CitizenshipAcquisitionMonth", "4" },
  86.                                { "CitizenshipAcquisitionYear", "1987" },
  87.                                { "CountryOfBirth", "Australia" },
  88.                                { "FamilyNameAtBirth", "Smith" },
  89.                                { "MedicareColor", "Blue" },
  90.                                { "MedicareMonthOfExpiry", "12" },
  91.                                { "MedicareReference", "2" },
  92.                                { "MedicareYearOfExpiry", "2017" },
  93.                                { "PassportCountry", "Australia" },
  94.                                { "PlaceOfBirth", "Melbourne" },
  95.                                { "RegistrationNumber", "565659" },
  96.                                { "RegistrationState", "NSW" },
  97.                                { "StockNumber", "ACD1234567" }
  98.                            }
  99.                        }
  100.                    }
  101.                }
  102.            };
  103. VerifyResult result = await truliooClient.Verification.VerifyAsync(request);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement