MaxMind, Inc.
and 7 contributors

NAME

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

VERSION

version 1.57

DESCRIPTION

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

https://www.maxmind.com/en/telephone_overview

AUTHORS

  • TJ Mather <tjmather@maxmind.com>

  • Frank Mather <frank@maxmind.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by MaxMind, Inc..

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991