Documentation Index
Fetch the complete documentation index at: https://docs.fingerprint.com/llms.txt
Use this file to discover all available pages before exploring further.
How to install
Add the package to your composer.json file as a dependency:
composer require fingerprint/server-sdk
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).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Fingerprint\ServerSdk\Api\FingerprintApi;
use Fingerprint\ServerSdk\Configuration;
$config = new Configuration(
"SECRET_API_KEY",
// Configuration::REGION_EUROPE
);
$client = new FingerprintApi($config);
// Search events, for example, by visitor ID
try {
$events = $client->searchEvents(10, visitor_id: "VISITOR_ID");
print_r($events);
} catch (Exception $e) {
echo $e->getMessage(), PHP_EOL;
}
// Get a specific identification event
try {
$event = $client->getEvent("EVENT_ID");
print_r($event);
} catch (Exception $e) {
echo $e->getMessage(), PHP_EOL;
}
Documentation
You can find the full documentation in the official GitHub repository.