}
@KEY or help();
-help() unless @ARGV;
my $Api = OvhApi->new(type => OvhApi::OVH_API_EU, applicationKey => $KEY[0], applicationSecret => $KEY[1], consumerKey => $KEY[2]);
# Auth
method => 'ALL', path => '/*',
}]);
+ die "Error" unless $Answer;
if ($Answer) {
my ($consumerKey, $validationUrl) = @{ $Answer->content}{qw{ consumerKey validationUrl }};
push @KEY, $consumerKey;
}
# Query
+help() unless @ARGV;
my $URL = shift @ARGV or help();
my $BODY = @ARGV ? shift(@ARGV) : {};
#use Data::Dumper; die Dumper(JSON::encode_json($BODY));