ali_cloudapi_sign 1.0.13
ali_cloudapi_sign: ^1.0.13

Dart native js
Flutter Android iOS web

ali_cloudapi_sign is package that sign aliyun api gateway request header,easy to use.

ali_cloudapi_sign Pub #

阿里云网关签名算法实现

Getting Started #

//设置网关的域名
AliSign.gatewayHosts = [];
//设置网关的Appkey
AliSign.gatewayAppkey = "";
//设置网关的Appsecret
AliSign.gatewayAppsecret = "";
//设置网关环境
AliSign.gatewayStage = "PRE"; //PRE TEST

//对访问的地址进行签名,返回签名的头信息
Map<String, dynamic> headers =
        AliSign.creatAliGatewaySign("get", Uri.parse(url), query);

如果使用 dio 实现网络请求,可以使用 dio 拦截器(dio_ali_sign) 实现请求签名 https://github.com/csdntm/dio_ali_sign

1
likes
100
pub points
0%
popularity

Publisher

csdn.net

ali_cloudapi_sign is package that sign aliyun api gateway request header,easy to use.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

crypto, dio

More

Packages that depend on ali_cloudapi_sign