From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Aliyun::AuthV2- 阿里云V2签名算法

SYNOPSIS

my $auth = Aliyun::AuthV2->new();
$auth->set_appkey('你自己的key');
$auth->set_secretkey('你自己的秘钥');

DESCRIPTION

Aliyun::AuthV2 阿里云V2签名算法

ATTRIBUTES

METHODS

set_evn

$auth->set_evn(1, 0);
是否是sanbox 生产环境:1,测试环境:0,默认:1
是否启用https 启用https:1,非https:0,默认:0

set_appkey

$auth->set_appkey('你自己的key');
设置阿里云给你的key值

set_secretkey

$auth->set_secretkey('你自己的秘钥');
置阿里云给你的秘钥

get_url

$auth->set_secretkey({});
生成请求的url地址