appvise/verifai-api

Library to access Verifai backend from your server

Installs: 393

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/appvise/verifai-api

dev-main 2022-06-21 12:37 UTC

This package is auto-updated.

Last update: 2025-09-29 02:59:13 UTC


README

Access Verifai's backend from your server to get access to Verifai result data

Documentation

Installation

Install this package via composer

composer require app-vise/verifai-api

Usage

Obtaining OTP

use Appvise\Verifai\Http\Body;
use Appvise\Verifai\Http\SessionId;
use Appvise\Verifai\Http\VerifaiResponse;
use Appvise\Verifai\VerifaiClientFactory;
use Exception;

$client = VerifaiClientFactory::make('YOUR_VERIFAI_TOKEN_FROM_DASHBOARD');
$body = new Body('your_handover_url_from_config_or_something');
$otp = $this->client->obtainOTP($body);

Fetch result

use Appvise\Verifai\Http\Body;
use Appvise\Verifai\Http\SessionId;
use Appvise\Verifai\Http\VerifaiResponse;
use Appvise\Verifai\VerifaiClientFactory;
use Exception;

$client = VerifaiClientFactory::make('YOUR_VERIFAI_TOKEN_FROM_DASHBOARD');
$sessionId = new SessionId('SESSION_ID_GOT_FROM_FRONTEND_RESULT');
$result = $this->client->getResult($sessionId);