Author image Michael Aquilina

NAME

WWW::VirtualPBX - Scraping-based interface to VirtualPBX.com

SYNOPSIS

  use WWW::VirtualPBX;

  my $vpbx = WWW::VirtualPBX->new(
      phone     => '(888) 555-1212',
      extension => '123',
      password  => 'opensesame',
  );

  if ($vpbx->queue_status(2))
  {
      # I'm logged into queue ID #2
      $vpbx->queue_logout(2);
  }
  else
  {
      $vpbx->queue_login(2);
  }

DESCRIPTION

This module provides an object-oriented Perl interface (via screen-scraping) to VirtualPBX.com ACD queues.

METHODS

new

Returns a new WWW::VirtualPBX object.

Takes the following required parameters:

  • phone

    The telephone number for the VirtualPBX you wish to connect to.

  • extension

    The extension number you wish to connect to.

  • password

    The password for the extension number you wish to connect to.

queue_status

Given a queue ID number, returns 1 or 0 depending on whether you're logged into that queue.

queue_login

Given a queue ID number, logs you into that queue.

queue_logout

Given a queue ID number, logs you out of that queue.

DEPENDENCIES

WWW::Mechanize

DISCLAIMER

The author of this module is not affiliated in any way with VirtualPBX.com. Users must follow the VirtualPBX.com terms of service when using this module.

COPYRIGHT AND LICENSE

Copyright (C) 2011 Michael Aquilina. All rights reserved.

This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Michael Aquilina, aquilina@cpan.org

Ohio-Pennsylvania Software, LLC