Group
Extension

Matches 2

WebService-AbuseIPDB ( H/HO/HOUSTON/WebService-AbuseIPDB-0.04.tar.gz, HOUSTON, 2025; MetaCPAN )
WebService-AbuseIPDB/lib/WebService/AbuseIPDB.pm ( view source; MetaCPAN )
e strict;
use warnings;

# use other modules
use IO::Socket::SSL;
use REST::Client;
use Carp;
use JSON::MaybeXS;
use URI;    # The GET requests need URI-escaping

our $VERSION = '0.04';

sub new {
	my
/api/v$self->{api_ver}/$path";
	my $ct = {'Content-type' => 'application/json'};
	my $headers = {
		Accept => 'application/json',
		Key    => $self->{key}
	};
	if ($meth eq 'GET') {
		my $u = URI->new
ion/json';
			$self->{ua}->POST ($path, encode_json ($data), $headers);
		} else {
			croak "Unrecognised method '$meth'";
		}

		if ($self->{ua}->responseCode !~ /400|50./) {
			return decode_json $s
WebService-AbuseIPDB ( H/HO/HOUSTON/WebService-AbuseIPDB-0.04.tar.gz, HOUSTON, 2025; MetaCPAN )
WebService-AbuseIPDB/lib/WebService/AbuseIPDB/Response.pm ( view source; MetaCPAN )
bService::AbuseIPDB::Response->new ($href);

The constructor takes a hashref constructed from the JSON returned by
the API. If the argument is missing or not a reference it assumes a
catastrophic prob

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.