The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.4

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, 'http://www.konfidi.org/ns/topics/0.0#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'};
...

METHODS

new()

SEE ALSO

Konfidi::Client, Konfidi::Client::Error