NAME
Konfidi::Response - a Konfidi TrustServer response
DESCRIPTION
A hash of values as the response from querying the Konfidi TrustServer. The 'Rating' value is used when a Response is used in a numerical context.
VERSION
Version 1.0.2
SYNOPSIS
use Konfidi::Client;
use Konfidi::Response;
use Error(:try);
my $k = Konfidi::Client->new();
$k->server('http://test-server.konfidi.org');
try {
my $response = $k->query($truster_40char_pgp_fingerprint, $trusted_40char_pgp_fingerprint, 'internet-communication');
} catch Konfidi::Client::Error with {
my $E = shift;
die "Couldn't query the trustserver: $E";
};
if ($response > 0.5) {
...
}
$response->{'Subject'};
$response->{'Error'};
...