The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::AbuseIPDB::BlacklistMember - Class for one item of the returned blacklist

SYNOPSIS

The blacklist API endpoint is designed to return a list of bad addresses. Each address is represeted by this class.

    use WebService::AbuseIPDB;

    my $ipdb = WebService::AbuseIPDB->new (key => 'abc123...');
    my $res = $ipdb->blacklist (limit => 5);
    for my $member ($res->list) {
        printf "%s has a score of %i\n",
        $member->ip, $member->score;

METHODS

The new, successful and errors methods are inherited from WebService::AbuseIPDB::Response. All other methods are accessors as listed here.

new

Takes one hashref and returns the object from it. Does no validation because it is only called internally.

ip

A getter which returns the ip address as a scalar string.

score

A getter which returns the abuse confidence score as an integer between 0 and 100 inclusive.

SEE ALSO

WebService::AbuseIPDB for general use of the client, WebService::AbuseIPDB::BlacklistResponse for the calling code and Version 2 of the AbuseIPDB API for API details/restrictions.

LICENCE AND COPYRIGHT

Copyright © 2020 Pete Houston

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991 or at your option any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

A copy of the GNU General Public License is available in the source tree; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA