Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linux-china/aliyun-openapi-rust-sdk
Aliyun OpenAPI SDK for Rust
https://github.com/linux-china/aliyun-openapi-rust-sdk
aliyun aliyun-openapi-sdk openapi rust
Last synced: 9 days ago
JSON representation
Aliyun OpenAPI SDK for Rust
- Host: GitHub
- URL: https://github.com/linux-china/aliyun-openapi-rust-sdk
- Owner: linux-china
- License: apache-2.0
- Created: 2020-11-21T05:17:51.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-17T21:00:57.000Z (about 3 years ago)
- Last Synced: 2024-10-12T17:09:33.020Z (about 1 month ago)
- Topics: aliyun, aliyun-openapi-sdk, openapi, rust
- Language: Rust
- Homepage: https://docs.rs/crate/aliyun-openapi
- Size: 49.8 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Alibaba Cloud OpenAPI SDK for Rust
The Alibaba Cloud SDK for Rust allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Object Storage Service(OSS), Direct Mail (DM) etc.
You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.# How to start?
Please install aliyun command line from https://github.com/aliyun/aliyun-cli first, then config the credential info with following command:```
$ aliyun configure
```# OSS example
```rust
use aliyun_openapi::prelude::*;
use std::str::from_utf8;
use bytes::Bytes;#[tokio::main]
async fn main() -> Result<(), Box> {
let endpoint = "oss-cn-hangzhou.aliyuncs.com";
let ref http_client = reqwest::Client::new();
let oss = OSS { endpoint, http_client };
let bytes: Bytes = oss.get_object("eren-assets", "hello.txt").await?;
print!("object: {}", from_utf8(bytes.as_ref()).unwrap());
Ok(())
}
```# References
* Alibaba Cloud: https://us.alibabacloud.com/
* Aliyun OpenAPI Explorer: https://api.aliyun.com/