Giter Site home page Giter Site logo

minfraud-api-perl's Introduction

NAME

WebService::MinFraud - BETA API for MaxMind's minFraud Score, Insights, and Factors services

VERSION

version 0.004000

SYNOPSIS

# This is a BETA release
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;

DESCRIPTION

This distribution provides a BETA API for the MaxMind minFraud Score, Insights, and Factors web services.

See WebService::MinFraud::Client for details on using the web service client API.

INSTALLATION

The minFraud Perl API and its dependencies can be installed with cpanm. cpanm itself has no dependencies.

cpanm WebService::MinFraud

VERSIONING POLICY

The minFraud Perl API uses Semantic Versioning.

PERL VERSION SUPPORT

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.

SUPPORT

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.

AUTHOR

Mateu Hunter [email protected]

CONTRIBUTORS

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 - 2016 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.