Power::Outlet::Common::IP::HTTP::JSON - Power::Outlet base class for JSON power outlets
use base qw{Power::Outlet::Common::IP::HTTP::JSON};
Power::Outlet::Common::IP::HTTP::JSON is a package for controlling and querying an JSON-based network attached power outlet.
JSON HTTP request response call
my $response_data_structure=$outlet->json_request($method, $url, $request_data_structure);
Example:
my $response_data_structure=$outlet->json_request(PUT=>"http://localhost/service", {foo=>"bar"});
Please log on RT and send an email to the author.
DavisNetworks.com supports all Perl applications including this package.
Michael R. Davis CPAN ID: MRDVT DavisNetworks.com
Copyright (c) 2013 Michael R. Davis
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
JSON
To install Power::Outlet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Power::Outlet
CPAN shell
perl -MCPAN -e shell install Power::Outlet
For more information on module installation, please visit the detailed CPAN module installation guide.