Skip to main content

How to install

Install the package from NuGet.
Bash
dotnet add package Fingerprint.ServerSdk
Initialize the client instance and use it to make API requests. You need to specify your secret API key and region (if it is not US/Global).
C#
using Fingerprint.ServerSdk.Api;
using Fingerprint.ServerSdk.Extensions;
using Fingerprint.ServerSdk.Client;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddFingerprint(options =>
{
    options.AddTokens(new BearerToken("SECRET-API-KEY"));
    // options.Region = Region.Eu;
});

var app = builder.Build();
var api = app.Services.GetRequiredService<IFingerprintApi>();

// Search events
var events = await api.SearchEventsAsync(new SearchEventsRequest().WithVisitorId("VISITOR_ID"));
Console.WriteLine(events.Ok());

// Get a specific identification event
var getEvent = api.GetEventAsync("EVENT_ID");
Console.WriteLine(getEvent.Ok());

Documentation

You can find the full documentation in the official GitHub repository.