t;
# ABSTRACT: User Agent Role for DigitalOcean WebService
use Moo::Role;
use LWP::UserAgent;
use JSON ();
use DateTime;
use Types::Standard qw/is_HashRef/;
use utf8;
our $VERSION = '0.026'; # VERSIO
= (
'Authorization' => 'Bearer ' . $self->token,
'Content-Type' => 'application/json; charset=utf-8',
);
my $ua = LWP::UserAgent->new(
agent => 'WebService
) = @_;
my $full_url = $self->api_base_url . $uri;
my $encoded_data = $data ? JSON::encode_json($data) : undef;
my $headers = undef;
return HTTP::Request->new( $method, $fu