WebService::MinFraud - API for MaxMind's minFraud Score, Insights, and Factors services
version 1.005000
use 5.010; use WebService::MinFraud::Client; # The Client object can be re-used across several requests. # Your MaxMind user_id and license_key are available at # https://www.maxmind.com/en/my_license_key my $client = WebService::MinFraud::Client->new( user_id => 42, license_key => 'abcdef123456', ); # Request HashRef must contain a 'device' key, with a value that is a # HashRef containing an 'ip_address' key with a valid IPv4 or IPv6 address. # All other keys/values are optional; see other modules in minFraud Perl API # distribution for details. my $request = { device => { ip_address => '24.24.24.24' } }; # Use the 'score', 'insights', or 'factors' client methods, depending on # the minFraud web service you are using. my $score = $client->score( $request ); say $score->risk_score; my $insights = $client->insights( $request ); say $insights->shipping_address->is_high_risk; my $factors = $client->factors( $request ); say $factors->subscores->ip_tenure;
This distribution provides an API for the MaxMind minFraud Score, Insights, and Factors web services.
See WebService::MinFraud::Client for details on using the web service client API.
The minFraud Perl API and its dependencies can be installed with cpanm. cpanm itself has no dependencies.
cpanm
cpanm WebService::MinFraud
The minFraud Perl API uses Semantic Versioning.
The minimum required Perl version for the minFraud Perl API is 5.10.0.
The data returned from the minFraud web services includes Unicode characters in several locales. This may expose bugs in earlier versions of Perl. If Unicode is important to your work, we recommend that you use the most recent version of Perl available.
Please report all issues with this distribution using the GitHub issue tracker at https://github.com/maxmind/minfraud-api-perl/issues.
If you are having an issue with a MaxMind service that is not specific to the client API please visit http://www.maxmind.com/en/support for details.
Bugs may be submitted through https://github.com/maxmind/minfraud-api-perl/issues.
Mateu Hunter <mhunter@maxmind.com>
Andy Jack <ajack@maxmind.com>
Dave Rolsky <drolsky@maxmind.com>
Florian Ragwitz <rafl@debian.org>
Greg <goschwald@maxmind.com>
Mark Fowler <mark@twoshortplanks.com>
Olaf Alders <oalders@maxmind.com>
Patrick Cronin <PatrickCronin@users.noreply.github.com>
Ruben Navarro <rbnx@users.noreply.github.com>
This software is copyright (c) 2015 - 2017 by MaxMind, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::MinFraud, copy and paste the appropriate command in to your terminal.
CPAN shell
perl -MCPAN -e shell install WebService::MinFraud
For more information on module installation, please visit the detailed CPAN module installation guide.