WWW::VirtualPBX - Scraping-based interface to VirtualPBX.com
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); }
This module provides an object-oriented Perl interface (via screen-scraping) to VirtualPBX.com ACD queues.
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.
Given a queue ID number, returns 1 or 0 depending on whether you're logged into that queue.
Given a queue ID number, logs you into that queue.
Given a queue ID number, logs you out of that queue.
WWW::Mechanize
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 (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.
Michael Aquilina, aquilina@cpan.org
Ohio-Pennsylvania Software, LLC
To install WWW::VirtualPBX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::VirtualPBX
CPAN shell
perl -MCPAN -e shell install WWW::VirtualPBX
For more information on module installation, please visit the detailed CPAN module installation guide.