Delphi / Object Pascal
:::caution Pré-release (alpha)
Este SDK está em alpha (0.1.0-alpha.1). A superfície de API pública ainda está sendo estabilizada — não use em produção.
:::
Instalação
Opção 1 — Adicionar arquivos fonte diretamente:
Copie o diretório Source/ para o projeto e adicione ao search path:
Project → Options → Delphi Compiler → Search path
Add: ..\velix-sdk-delphi\Source;..\velix-sdk-delphi\Source\Modules
Opção 2 — Instalar como pacote design-time:
- Abra
VelixSDK.dpkno RAD Studio - Clique em Compile e depois Install
- O pacote fica disponível em todos os projetos
Quickstart
uses Velix.Client, Velix.Types, Velix.Error;
var
Client: TVelixClient;
Result: TCheckinResult;
begin
Client := TVelixClient.Create(
'https://api.velixbiometrics.com',
GetEnvironmentVariable('VELIX_API_KEY')
);
Result := Client.Checkin.Facial('tenant-slug', FrameBase64);
if Result.Passed then
WriteLn('GRANTED');
end;
Requisitos
- Delphi XE8+ / RAD Studio 10.x ou superior
System.Net.HttpClient(incluso desde XE8 — não requer Indy)System.JSON(incluso desde XE5)