aliyun_rust_http_client

Crates.ioaliyun_rust_http_client
lib.rsaliyun_rust_http_client
version0.1.0
sourcesrc
created_at2023-10-11 15:10:16.153789
updated_at2023-10-11 15:10:16.153789
descriptionaliyun rust http client
homepage
repositoryhttps://github.com/wqj97/aliyun_rust_http_client
max_upload_size
id1000376
size7,318
Clark (wqj97)

documentation

README

阿里云 Rust Http SDK

这是一个阿里云的Rust SDK, 用于访问阿里云的各种服务. 仅处理了阿里云的签名算法, 输入参数后, 会返回一个签名后的URL. 用任意的HTTP客户端访问这个URL, 即可访问阿里云的服务.

安装

cargo add aliyun_rust_http_client

使用

use aliyun_rust_http_client::client::{AliyunClient, AliyunQuery};

let client = AliyunClient::new(
    "access_key_id",
    "access_key_secret",
    "https://xxx.aliyuncs.com"
);
let mut query = AliyunQuery::new();
query.add_param("Action", "DescribeDomainRecords");
let url = client.generate_aliyun_url(&mut query);
reqwest::get(&url);
Commit count: 3

cargo fmt