PHP code example of mkopus / riskscreen-php-sdk

1. Go to this page and download the library: Download mkopus/riskscreen-php-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mkopus / riskscreen-php-sdk example snippets


    


onfigure API key authorization: APIKeyHeader
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ResultsApi();
$encoded_id = "encoded_id_example"; // string | 

try {
    $result = $api_instance->resultsGetCompanyDetails($encoded_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ResultsApi->resultsGetCompanyDetails: ', $e->getMessage(), PHP_EOL;
}