package App::Photobear;
use v5.18;
use warnings;
use Carp;
use HTTP::Tiny;
use Data::Dumper;
use JSON::PP;
# Define version
our $VERSION = '0.1.2';
# Define constants
our $PHOTOBEAR_URL = 'https://
OBEAR_URL' \
--header 'x-api-key: $api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"photo_url":"$url",
"mode":"$mode"
}');
", sprintf("Child exited with value %d\n", $? >> 8));
}
my $decoded_content = decode_json($output);
return $decoded_content;
}
sub download {
my ($url, $dest) = @_;
# Use cu