This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.2.0
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
PHP 7.2 and later
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/passbase/passbase-php.git"
}
],
"require": {
"passbase/passbase-php": "*@dev"
}
}Then run composer install
Download the files and include autoload.php:
require_once('/path/to/passbase/vendor/autoload.php');To run the unit tests:
composer install
./vendor/bin/phpunitPlease follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: SecretApiKey
$config = Passbase\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Passbase\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
$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
);
$id = 'id_example'; // string | Unique ID of the identity to return
try {
$result = $apiInstance->getIdentityById($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IdentityApi->getIdentityById: ', $e->getMessage(), PHP_EOL;
}
?>All URIs are relative to https://api.passbase.com/verification/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| IdentityApi | getIdentityById | GET /identities/{id} | Get identity |
| IdentityApi | getIdentityResourceById | GET /identity/{id}/resources/{resource_id} | Get resource |
| IdentityApi | getIdentityResourceFileById | GET /identity/{id}/resources/{resource_id}/resource_files/{resource_file_id} | Get resource file |
| IdentityApi | listIdentities | GET /identities | List identities |
| IdentityApi | listIdentityResources | GET /identity/{id}/resources | List resources |
| ProjectApi | getSettings | GET /settings | Get project settings |
- Cursor
- Identity
- IdentityOwner
- IdentityResource
- PaginatedIdentities
- PaginatedResources
- ProjectSettings
- ProjectSettingsCustomizations
- ProjectSettingsVerificationSteps
- Resource
- ResourceFile
- ResourceInput
- User
- WatchlistResponse
- Type: Bearer authentication (JWT)
- Type: API key
- API key parameter name: X-API-KEY
- Location: HTTP header
- Type: API key
- API key parameter name: X-API-KEY
- Location: HTTP header
