jaddek / sumsub-sdk-php
Sumsub http api client
v0.2.1
2022-01-18 19:21 UTC
Requires
- php: >=8.0
- jaddek/hydrator: dev-main
- symfony/http-client: ^v6.0.2
Requires (Dev)
- phpunit/phpunit: ^9.5
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);