Webservice::GAMSTOP - GAMSTOP API Client Implementation
version 0.001
use Webservice::GAMSTOP; my $instance = Webservice::GAMSTOP->new( api_url => 'gamstop_api_url', api_key => 'gamstop_api_key', # optional (defaults to 5 seconds) timeout => 10, ); $instance->get_exclusion_for( first_name => 'Harry', last_name => 'Potter', email => 'harry.potter@example.com', date_of_birth => '1970-01-01', postcode => 'hp11aa', );
This module implements a programmatic interface to [GAMSTOP](https://www.gamstop.co.uk/) API.
Before you can use this module, you'll need to obtain your own "Unique API Key" from [GAMSTOP](https://www.gamstop.co.uk/).
Webservice::GAMSTOP implements the following attributes
GAMSTOP API endpoint url (REQUIRED)
GAMSTOP API unique key for operator (REQUIRED)
Maximum amount of time in seconds establishing a connection may take before getting canceled (OPTIONAL - DEFAULT 5 seconds)
Given user details return Webservice::GAMSTOP::Response object Note: it dies if an error occur connecting to GAMSTOP API endpoint
first_name : First name of person, only 20 characters are significant
last_name : Last name of person, only 20 characters are significant
date_of_birth: Date of birth in ISO format (yyyy-mm-dd)
email : Email address
postcode : Postcode (spaces not significant)
x_trace_id: A freeform field that is put into audit log that can be used by the caller to identify a request. This might be something to indicate the person being checked, a unique request ID, GUID, or a trace ID from a system such as zipkin.
A Webservice::GAMSTOP::Response object
binary.com <cpan@binary.com>
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::GAMSTOP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::GAMSTOP
CPAN shell
perl -MCPAN -e shell install Webservice::GAMSTOP
For more information on module installation, please visit the detailed CPAN module installation guide.