::Request;
use HTTP::Headers;
use HTTP::Request::Common;
use Digest::SHA 'hmac_sha1_base64';
use JSON;
our $VERSION = '0.9';
use constant DEBUG => $ENV{MONITIS_DEBUG} || 0;
require Carp;
our $TOK
$self->{ua} ||= LWP::UserAgent->new(agent => "perl-monitis-api/$VERSION");
$self->{json} ||= JSON->new;
bless $self, $class;
}
sub auth_token {
my ($self, $token, $expires) = @_;
w($self->api_url);
$uri->query_form(
action => 'authToken',
output => 'json',
version => $API_VERSION,
secretkey => $self->secret_key,
apikey =>