Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 932 Bytes

walkthrough.md

File metadata and controls

30 lines (24 loc) · 932 Bytes
  1. You can install the bindings via Composer. Run the following command:
composer require passbase/passbase-php
  1. You can now use the Passbase SDK by requiring the autoload.php file
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure the SDK with your API Secret access key
$config = Passbase\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', '{{YOUR_SECRET_API_KEY}}');

$apiInstance = new Passbase\api\IdentityApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->getIdentityById("<uuid>");
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IdentityApi->getIdentityById: ', $e->getMessage(), PHP_EOL;
}
?>