L => 'all', NONFATAL => 'uninitialized';
use Carp qw(croak);
use English qw(-no_match_vars);
use JSON;
=head1 NAME
WWW::Codeguard - Perl interface to interact with the Codeguard API
=head1 VERSION
ontent) {
my $json = eval { decode_json($output); }
or return $self->_error('Invalid API reponse received (unable to decode json): '.$api_response->status_line, 1);
return $json;
} else {
re
turn $self->_error('Invalid API reponse received (no json received): '.$api_response->status_line, 1);
}
return;
}
sub _sanitize_params {
my ($self, $action, $params) = @_;
my $required_params =
t;
use warnings FATAL => 'all', NONFATAL => 'uninitialized';
use parent qw(WWW::Codeguard);
use JSON qw();
use Net::OAuth;
use LWP::UserAgent;
use HTTP::Request;
=head1 NAME
WWW::Codeguard::User -
$params, 'HASH') ? ( website_id => $params->{website_id} ) : (),
};
$real_params->{disabled} = JSON::false;
return $self->_do_method('edit_website', $real_params);
}
=head2 disable_website
This
The parameters passed in were: '."\n".$self->_stringify_hash($params), 1);
$params->{disabled} = JSON::true;
return $self->_do_method('edit_website', $params);
}
=head2 create_database
This allows
t;
use warnings FATAL => 'all', NONFATAL => 'uninitialized';
use parent qw(WWW::Codeguard);
use JSON;
use LWP::UserAgent;
use HTTP::Request;
=head1 NAME
WWW::Codeguard::Partner - Perl interface to
= HTTP::Request->new( $action_map->{$action} );
$request->header('Content-Type' => 'application/json' );
$self->_set_content($request, $params);
$self->_set_uri($action, $request, $params);
retur