GeoIP2...MaxMind(3pm)

πŸ“¦
version 2.006002 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– GeoIP2::Record::MaxMind β€” the whole vibe πŸ’–

okay bestie, gather round, because this is the GeoIP2::Record::MaxMind manual page (that's the GeoIP2...MaxMind(3pm) one, yes, the title got squished by the terminal, it's fine, it's giving abbreviation energy) 🌸

Version: version 2.006002 ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so this is literally how you use it, copy-paste core:

use 5.008;

use GeoIP2::WebService::Client;

my $client = GeoIP2::WebService::Client->new(
    account_id  => 42,
    license_key => 'abcdef123456',
);

my $insights = $client->insights( ip => '24.24.24.24' );

my $maxmind_rec = $insights->maxmind();
print $maxmind_rec->queries_remaining(), "\n";

like… look at her go πŸ’…


🌈 DESCRIPTION 🌈

so this class holds the maxmind record data that comes back when you hit up a web service query. that's it, that's the class 🫢

but here's the plot twist that makes this one special, and you NEED to know it: unlike all the other record classes, the data in this record is tied to your MaxMind account, not to an IP address. no IP, no problem, it's about you babe πŸ’–

and the best part? this record is returned by all the end points. every single one. iconic behavior honestly ⭐


✨ METHODS ✨

this class is serving you the following methods, no more, no less:

πŸŽ€ $maxmind_rec->queries_remaining()

this one tells you the number of queries remaining for the end point you just queried πŸ“

⚠️ but listen, lowkey important: this is an approximation. query counts are only periodically synced across all of MaxMind's servers, so don't come for it if the number's a little off. it's doing its best πŸ’€

πŸ’œ SUPPORT πŸ’œ

found a bug? bestie, go tell them! bugs may be submitted through:

https://github.com/maxmind/GeoIP2-perl/issues


πŸ‘‘ AUTHORS πŸ‘‘

these are the legends who made it happen, put some respect on their names fr fr:

  • Dave Rolsky <drolsky@maxmind.com>
  • Greg Oschwald <goschwald@maxmind.com>
  • Mark Fowler <mfowler@maxmind.com>
  • Olaf Alders <oalders@maxmind.com>

this software is copyright (c) 2013 - 2019 by MaxMind, Inc. 🫢

and it's free software β€” you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, open source πŸ’…


and that's the whole page bestie!! this was rendered by perl v5.36.0 on 2022-11-21, and the footer was shouting GeoIP2...MaxMind(3pm) at us the whole time like a little hype man πŸ“£ go forth and query responsibly, mwah πŸ’–βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from