NAME

Power::Outlet::Common::IP::HTTP::JSON - Power::Outlet base class for JSON power outlets

SYNOPSIS

use base qw{Power::Outlet::Common::IP::HTTP::JSON};

DESCRIPTION

Power::Outlet::Common::IP::HTTP::JSON is a package for controlling and querying an JSON-based network attached power outlet.

USAGE

use base qw{Power::Outlet::Common::IP::HTTP::JSON};

PROPERTIES

METHODS

json_request

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"});

BUGS

Please log on RT and send an email to the author.

SUPPORT

DavisNetworks.com supports all Perl applications including this package.

AUTHOR

Michael R. Davis
CPAN ID: MRDVT
DavisNetworks.com

COPYRIGHT

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.

SEE ALSO

JSON