package Net::Cloudflare::DNS;
use 5.006;
use strict;
use warnings;
use JSON;
use URI;
use LWP::UserAgent;
use LWP::Protocol::https;
sub new {
my $class = shift;
my %args = @_;
my $ua
Type' => 'application/json',
'Authorization' => "Bearer $args{api_token}",
);
} else {
%headers = (
'Content-Type' => 'application/json',
'X-Aut
ode_json($res->decoded_content);
} else {
die $res->status_line, $res->decoded_content;
}
}
sub create_record {
my $self = shift;
my %args = @_;
my $data = encode_json(\%