use strict;
package DAPNET::API;
use LWP::UserAgent;
use JSON;
use MIME::Base64;
#use LWP::ConsoleLogger::Everywhere ();
=head1 NAME
DAPNET::API - Use the DAPNET API from Perl
=head1 SYNOPSIS
my
ength($self->{CALLSIGN});
return($self);
};
sub _build_request {
my($self) = shift;
my($json) = shift;
my($type) = shift;
my($username) = $self->{DAPNET_USERNAME};
my($pw) = $sel
=> 'application/json',
'Authorization'=>'Basic ' . encode_base64($username.':'.$pw)
);
$req->content( $json );
return($req);
};
sub _json_individual_cal