3 releases
0.0.2-alpha | Nov 25, 2024 |
---|---|
0.0.1-alpha | Nov 25, 2024 |
0.0.0-alpha | Nov 25, 2024 |
#1944 in Web programming
385 downloads per month
18KB
354 lines
Introduction
Async Zenlayer Cloud openapi wrapper.
Usage
Cargo.toml:
zenlayercloud-sdk = "*"
# service api to use
zenlayercloud-sdk-cdn = "*"
rust:
use zenlayercloud_sdk::credentials::AccessKeyCredential;
use zenlayercloud_sdk_cdn::*;
async fn async_function() -> Result<()> {
// read credential from environment variable ZENLAYER_CLOUD_ACCESS_KEY_ID & ZENLAYER_CLOUD_ACCESS_KEY_PASSWORD
let credential = AccessKeyCredential::from_env()?;
let c = Client::new(credential);
let payload = DescribeCertificatesRequest::builder().build();
let res = c.describe_certificates(&payload).await;
Ok(())
}
Dependencies
~8–20MB
~272K SLoC