her::WWO;
use Moo;
use MooX::Types::MooseLike::Base qw/Str Int HashRef Bool/;
use HTTP::Tiny;
use JSON;
our $VERSION = '0.07';
=head1 Name
Weather::WWO - API to World Weather Online
=head1 Synopsi
default => sub { 5 },
);
# We are only using the JSON format
has 'format' => (
is => 'ro',
isa => Str,
default => sub { 'json' },
init_arg => undef,
);
has 'temperature_
ponse->{content};
die "No content for $URL\n" unless defined $content;
my $data = decode_json($content);
# Are there any errors?
if (my $errors = $data->{data}->{error}) {
for