Konfidi::Response - a Konfidi TrustServer response


Konfidi-Client documentation  | view source Contained in the Konfidi-Client distribution.

Index


NAME

Top

Konfidi::Response - a Konfidi TrustServer response

DESCRIPTION

Top

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

Top

Version 1.0.4

SYNOPSIS

Top

    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

Top

new()

SEE ALSO

Top

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


Konfidi-Client documentation  | view source Contained in the Konfidi-Client distribution.