Carp qw(croak);
use Data::Dumper;
use Exporter qw(import);
use File::HomeDir;
use HTTP::Tiny;
use JSON;
our $VERSION = '0.04';
our @EXPORT = qw(host_ip_get host_ip_set);
our @EXPORT_OK = qw(api_key_
{
URL => 'https://api.godaddy.com',
API_KEY_FILE => "$home_dir/godaddy_api.json",
};
my $client = HTTP::Tiny->new;
my ($key, $secret);
sub api_key_get {
return($key, $secr
or croak "GoDaddy API key/secret file ${\API_KEY_FILE} doesn't exist";
my $data = decode_json(<$fh>);
$key = $data->{api_key};
$secret = $data->{api_secret};
}
retur