Group
Extension

Matches 1

Zabbix-API ( F/FG/FGA/Zabbix-API-0.004.tar.gz, FGA, 2012; MetaCPAN )
Zabbix-API/lib/Zabbix/API.pm ( view source; MetaCPAN )
:all/;
use Carp qw/carp croak confess cluck/;
use Data::Dumper;
use Scalar::Util qw/weaken/;

use JSON;
use LWP::UserAgent;

our $VERSION = '0.004';

sub new {

    my $class = shift;
    my %args = v
                   params => \%args);

    $self->{cookie} = '';

    my $decoded = eval { decode_json($response->decoded_content) };

    if ($@) {

        # probably could not connect at all
      
$args{user};

    return $self;

}

sub logout {

    my $self = shift;

    my $decoded = decode_json($self->raw_query(method => 'user.logout')->decoded_content);

    if ($decoded->{error}) {

     

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.