GitXplorerGitXplorer
k

webservice-geoipify

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
e7d3a3be169db59a4810c6112cb939739b3c3b97

Test module loading properly

kkianmeng committed 6 years ago
Unverified
00e590da4cb062f962e8929e5dd0e6a01c34eb27

Remove unused modules

kkianmeng committed 6 years ago
Unverified
ac36fe4718f272126621d16e3c2ba7f2f693fc53

Use standard name for first test file

kkianmeng committed 6 years ago
Unverified
e49e103c27a664a91aaa0b1ae71884749a700de8

0.05

kkianmeng committed 6 years ago
Unverified
cb38362f1c5f5a0e95897cb9db35f7b6a4279f59

Fix issue raised by Kwalitee

kkianmeng committed 6 years ago
Unverified
2e76c9bb211081d14b032e4112cb361f8a3019a4

Include the meta file

kkianmeng committed 6 years ago

README

The README file for this repository.

Cpan license Cpan version

NAME

WebService::GeoIPify - Perl library for ipify's Geolocation API, https://geo.ipify.org and https://ipify.org.

SYNOPSIS

use WebService::GeoIPify;

my $geoipify = WebService::GeoIPify->new(api_key => '1xxxxxxxxxxxxxxxxxxxxxxxxxxxxx32');
print $geoipify->lookup('8.8.8.8');

DESCRIPTION

WebService::GeoIPify is a Perl library for obtaining Geolocation information on IPv4 address.

DEVELOPMENT

Source repository at https://github.com/kianmeng/webservice-geoipify.

How to contribute? Follow through the CONTRIBUTING.md document to setup your development environment.

METHODS

new($api_key)

Construct a new WebService::GeoIPify instance.

my $geoipify = WebService::GeoIPify->new(api_key => '1xxxxxxxxxxxxxxxxxxxxxxxxxxxxx32');

api_key

Compulsory. The API access key used to make request through web service.

api_url

The default base URL for API calls.

api_ipify_url

The default base URL for ipify API calls to obtain the client public IP.

lookup($ip_address)

Query and get an IP address information. Only accept IPv4 public address.

my $geoipify = WebService::GeoIPify->new(api_key => '1xxxxxxxxxxxxxxxxxxxxxxxxxxxxx32');
print $geoipify->lookup('8.8.8.8');

check()

Look up the public IP address of the client which made the web service call.

my $geoipify = WebService::GeoIPify->new(api_key => '1xxxxxxxxxxxxxxxxxxxxxxxxxxxxx32');
print $geoipify->check();

AUTHOR

Kian Meng, Ang kianmeng@cpan.org

COPYRIGHT AND LICENSE

This software is Copyright (c) 2019 Kian Meng, Ang.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)