Skip to content
No description, website, or topics provided.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea/.idea.Pliance.SDK
Pliance.SDK.Tests
Pliance.SDK
.dockerignore
.gitignore
LICENSE
Pliance.SDK.sln
README.md

README.md

Pliance .NET SDK

NuGet

dotnet add package Pliance.NET-SDK

Create Factory

var factory = new PlianceClientFactory(
    secret: "2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b",
    issuer: "Test",
    url: "https://test.pliance.io/",
    certificate: new X509Certificate2("client.pfx")
);

Register Person

var client = factory.Create("givenname", "sub");
var result = await client.RegisterPerson(new RegisterPersonCommand()
{
    PersonReferenceId = "reference-id",
    FirstName = "Barack",
    LastName = "Obama"
});

Delete Person

var client = factory.Create("givenname", "sub");
var result = await client.DeletePerson(new DeletePersonCommand
{
    PersonReferenceId = "reference-id"
});

Archive Person

var client = factory.Create("givenname", "sub");
var result = await client.ArchivePerson(new ArchivePersonCommand
{
    PersonReferenceId = "reference-id"
});

Classify Match

var client = factory.Create("givenname", "sub");
var result = await client.ClassifyPersonHit(new ClassifyHitCommand
{
    PersonReferenceId = "reference-id",
    MatchId = "match-id",
    AliasId ="alias-id",
    Classification = ClassificationType.Positive
});

Nuget

You can’t perform that action at this time.