1. Go to this page and download the library: Download rrd108/uvb-connector 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/ */
rrd108 / uvb-connector example snippets
use webmenedzser\UVBConnector\UVBConnector;
$email = '[email protected]';
$publicApiKey = 'aaaa';
$privateApiKey = 'bbbb';
$connector = new UVBConnector(
$email,
$publicApiKey,
$privateApiKey
);
use webmenedzser\UVBConnector\UVBConnector;
$email = '[email protected]';
$publicApiKey = 'aaaa';
$privateApiKey = 'bbbb';
$threshold = 0.5;
$connector = new UVBConnector(
$email,
$publicApiKey,
$privateApiKey
);
// Set a threshold for the request
$connector->threshold = $threshold;
// Get reputation by hash
$response = $connector->get();
use webmenedzser\UVBConnector\UVBConnector;
$email = '[email protected]';
$publicApiKey = 'aaaa';
$privateApiKey = 'bbbb';
// 1 if good, -1 if bad;
$outcome = 1;
$connector = new UVBConnector(
$email,
$publicApiKey,
$privateApiKey
);
// Submit order outcome to API
$response = $connector->post($outcome);
use webmenedzser\UVBConnector\UVBConnector;
$email = '[email protected]';
$publicApiKey = 'aaaa';
$privateApiKey = 'bbbb';
$production = false;
$threshold = 0.5;
$connector = new UVBConnector(
$email,
$publicApiKey,
$privateApiKey,
$production
);
// Set a threshold for the request
$connector->threshold = $threshold;
// Get reputation by hash
$response = $connector->get();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.