Group
Extension

Matches 8

Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/IPinfo.pm ( view source; MetaCPAN )


use 5.006;
use strict;
use warnings;
use Cache::LRU;
use LWP::UserAgent;
use HTTP::Headers;
use JSON;
use Geo::Details;
use Net::CIDR;
use Net::CIDR::Set;

our $VERSION = '3.2.0';
use constant DEFAU
elf->{ua}->default_headers(
        HTTP::Headers->new(
            Accept        => 'application/json',
            Authorization => 'Bearer ' . $token
        )
    );
    $self->{ua}->agent("IPinfo
_type =~ m{application/json}i ) {
            eval { $info = from_json( $response->decoded_content ); };
            if ($@) {
                return ( undef, 'Error parsing JSON response.' );
       
Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/IPinfoPlus.pm ( view source; MetaCPAN )


use 5.006;
use strict;
use warnings;
use Cache::LRU;
use LWP::UserAgent;
use HTTP::Headers;
use JSON;
use Geo::DetailsPlus;
use Net::CIDR;
use Net::CIDR::Set;

our $VERSION = '3.2.0';
use constant D
/Perl/3.2.0' );
    $header->header( 'Accept'       => 'application/json' );
    $header->header( 'Content-Type' => 'application/json' );

    if ($token) {
        $header->header( 'Authorization' =>
_type =~ m{application/json}i ) {
            eval { $info = from_json( $response->decoded_content ); };
            if ($@) {
                return ( undef, 'Error parsing JSON response.' );
       
Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/IPinfoLite.pm ( view source; MetaCPAN )


use 5.006;
use strict;
use warnings;
use Cache::LRU;
use LWP::UserAgent;
use HTTP::Headers;
use JSON;
use Geo::DetailsLite;
use Net::CIDR;
use Net::CIDR::Set;

our $VERSION = '3.2.0';
use constant D
elf->{ua}->default_headers(
        HTTP::Headers->new(
            Accept        => 'application/json',
            Authorization => 'Bearer ' . $token
        )
    );
    $self->{ua}->agent("IPinfo
_type =~ m{application/json}i ) {
            eval { $info = from_json( $response->decoded_content ); };
            if ($@) {
                return ( undef, 'Error parsing JSON response.' );
       
Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/DetailsLite.pm ( view source; MetaCPAN )
;
    bless $self, $class;
    return $self;
}

sub TO_JSON {
    my ($self) = @_;

    # Return a copy of the object as a hash reference for JSON encoding
    return {%$self};
}


sub ip {
    return
lain string. It defaults to an empty string if not provided.

=head2 TO_JSON

This method is used to convert the object to a JSON representation.

=head2 ip

    my $ip_address = $geo_details->ip();

Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/DetailsCore.pm ( view source; MetaCPAN )
 reference
    my $self = { $key => $data };
    bless $self, $class;
    return $self;
}

sub TO_JSON {
    my ($self) = @_;
    return {%$self};
}

sub ip { return $_[0]->{ip}; }
sub geo { return $_
Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/IPinfoCore.pm ( view source; MetaCPAN )


use 5.006;
use strict;
use warnings;
use Cache::LRU;
use LWP::UserAgent;
use HTTP::Headers;
use JSON;
use Geo::DetailsCore;
use Net::CIDR;
use Net::CIDR::Set;

our $VERSION = '3.2.0';
use constant D
/Perl/3.2.0' );
    $header->header( 'Accept'       => 'application/json' );
    $header->header( 'Content-Type' => 'application/json' );

    if ($token) {
        $header->header( 'Authorization' =>
_type =~ m{application/json}i ) {
            eval { $info = from_json( $response->decoded_content ); };
            if ($@) {
                return ( undef, 'Error parsing JSON response.' );
       
Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/DetailsPlus.pm ( view source; MetaCPAN )
 reference
    my $self = { $key => $data };
    bless $self, $class;
    return $self;
}

sub TO_JSON {
    my ($self) = @_;
    return {%$self};
}

sub ip { return $_[0]->{ip}; }
sub hostname { retu
Geo-IPinfo ( I/IP/IPINFO/Geo-IPinfo-3.2.0.tar.gz, IPINFO, 2025; MetaCPAN )
Geo-IPinfo/lib/Geo/Details.pm ( view source; MetaCPAN )
;
    bless $self, $class;
    return $self;
}

sub TO_JSON {
    my ($self) = @_;

    # Return a copy of the object as a hash reference for JSON encoding
    return {%$self};
}

sub abuse {
    retu
lain string. It defaults to an empty string if not provided.

=head2 TO_JSON

This method is used to convert the object to a JSON representation.

=head2 abuse

    my $abuse_email = $geo_details->abu

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