jaddek/sumsub-sdk-php

Sumsub http api client

v0.2.1 2022-01-18 19:21 UTC

This package is not auto-updated.

Last update: 2025-01-01 10:11:09 UTC


README

<?php

require_once('../vendor/autoload.php');

$apiToken    = '';
$secretToken = '';
$userId      = '';
$levelName   = 'demo';

$endpoint = \Jaddek\Sumsub\Http\Factory::buildEndpoint(
    \Jaddek\Sumsub\Http\Endpoint\AccessToken::class,
    $apiToken,
    $secretToken
);

$provider = new \Jaddek\Sumsub\Http\Provider\AccessTokenProvider($endpoint);
$data     = $provider->getAccessToken(
    new \Jaddek\Sumsub\Http\Query\AccessToken\AccessTokenQuery(
        $userId,
        $levelName
    )
);

print_r($data);