Skip to content

Cosmoflips/aliyun-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun API

非官方的Rust API SDK

现已支持的

  • OSS
  • 物联网

示例

use aliyun_api::{client::Client, request::Request};

#[tokio::main]
async fn main() {
    let ID = "*******************";
    let SECRET = "************************";
    let REGION = "oss-cn-hangzhou.aliyuncs.com";
    let client = Client::new(ID, SECRET,REGION);
    let mut req = client
        .request_oss("GET", "/BucketName","OBjectName")
        .querys(&mut vec![
            ("list-type".to_string(), "2".to_string()),
        ])
        .body(String::new());
    if let Ok(text) = req.send().await {
        println!("{text}");
    }
}

About

Self-defined Rust Aliyun API SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages