Boris Zentner > Business-MaxMind-1.54 > Business::MaxMind::TelephoneVerification

Download:
Business-MaxMind-1.54.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.0   Source   Latest Release: Business-MaxMind-1.56

NAME ^

Business::MaxMind::TelephoneVerification - Access MaxMind's Telephone Verification service

ABSTRACT ^

This module queries the Telephone Verification service and calls the customer

new

Class method that returns a Business::MaxMind::TelephoneVerification object. If isSecure is set to 1, it will use a secure connection. If debug is set to 1, will print debugging output to standard error. timeout parameter is used to set timeout in seconds, if absent default value for timeout is 10 seconds.

input

Sets input fields. The input fields are

  • l: license key
  • phone: phone number
  • verify_code: code to used to verify

Returns 1 on success, 0 on failure.

query

Sends out query to MaxMind server and waits for response. If the primary server fails to respond, it sends out a request to the secondary server.

output

Returns the output returned by the MaxMind server as a hash reference. The output fields are

  • refid: Reference ID
  • randCode: code to used to verify, randomly generated by MaxMind only if not passed as verify_code input parameter
  • err: Error String

SEE ALSO ^

http://www.maxmind.com/app/telephone_overview

AUTHOR ^

Frank Mather, <frank@maxmind.com>

COPYRIGHT AND LICENSE ^

Copyright 2005 by MaxMind LLC

All rights reserved. This package is free software and is licensed under the GPL. For details, see the COPYING file.

syntax highlighting: