NAME
WebService::Sift - WebService::Sift - an interface to siftscience.com's Events, Score and Label APIs using Web::API
VERSION
version 0.2
SYNOPSIS
Please refer to the API documentation at https://siftscience.com/resources/references/events-api.html
use WebService::Sift;
my $ws = WebService::Sift->new(api_key => 'XXX', debug => 1);
# send a transaction event
my $response = $ws->transaction(
'$user_id' => 'some@email.user',
'$currency_code' => 'USD',
'$amount' => 500000, # $50
);
# get score for a user_id
# unfortunately due to some weird variable naming decisions at SiftScience
# the api_key has to be passed in here as well
$response = $ws->score(user_id => 'some@email.user', api_key => 'XXX');
# label a user_id as fraud
$ws->label('$user_id' => 'some@email.user', '$is_bad' => 'true');
SUBROUTINES/METHODS
create_order
transaction
create_account
update_account
add_item
remove_item
submit_review
send_message
login
logout
link_session_to_user
custom
score
label
INTERNALS
BUILD
basic configuration for the client API happens usually in the BUILD method when using Web::API
BUGS
Please report any bugs or feature requests on GitHub's issue tracker https://github.com/nupfel/WebService::Sift/issues. Pull requests welcome.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc WebService::Sift
You can also look for information at:
GitHub repository
MetaCPAN
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
AUTHOR
Tobias Kirschstein <lev@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2014 by Tobias Kirschstein.
This is free software, licensed under:
The (three-clause) BSD License