'method' => 'GET',
);
get_options(\%Opt);
-$main::_DATA_ = undef;
# Auth
if ($_ = $Opt{activate}) {
exec qq|curl -s -XPOST -H"X-Ovh-Application: $_" -H "Content-type: application/json" https://eu.api.ovh.com/1.0/auth/credential -d '{"accessRules": [ { "method": "GET", "path": "/*" } ] }'|.'|jq .';
#exec("curl","-XPOST",'-H',"X-Ovh-Application: $_",'-H','Content-type: application/json','https://eu.api.ovh.com/1.0/auth/credential','-d',qq|'{"accessRules": [ { "method": "GET", "path": "/*" } ],"redirection":"https://www.mywebsite.com/" }'|);
exit 0;
}
-help() unless @ARGV;
+$main::_DATA_ = '';
#################################################################################
}
@KEY or help();
-die map{"$_\n"} @KEY;
+help() unless @ARGV;
my $o = OvhApi->new(type => OvhApi::OVH_API_EU, applicationKey => $KEY[0], applicationSecret => $KEY[1], consumerKey => $KEY[2]);
my $URL = shift @ARGV or help();