Perl5 Module WebService::IFConfig::Client
Client for Martin Polden's IP address lookup service.
Note:
- this has only been tested lightly
- there's no test cases
- there's no Build.PL, etc., etc.
- obvs., it's not on CPAN
- PRs welcome
Rate Limiting
Unless you are hosting your own copy of the service, the canonical instance at https://ifconfig.co requests you limit your requests to 1 per minute. Don't abuse his service, host your own if you need more frequent lookups.
Usage
use feature qw/say/;
use WebService::IFConfig::Client;
my $ipconfig = WebService::IFConfig::Client->new();
say $ifconfig->city();
say $ifconfig->country();
say $ifconfig->hostname();
say $ifconfig->ip();
say $ifconfig->ip_decimal();
Author, Copyright
Copyright Ⓒ 2017 Nicolas Doye