danewalters / object-storage

This library is used to manipulate oss or cos
https://crates.io/crates/object-storage
4 stars 0 forks source link

need an example for Tencent Cloud-cos #2

Open RogueJin opened 1 year ago

RogueJin commented 1 year ago

is there an example for tencent?

by the way there is a typo in the following sample code:

[tokio::main]

async fn main() { let auth = Auth::new("your aliyun oss AccessKeyId", "your aliyun oss AccessKeySecret").await; let buck_list = auth.list_bucket().await.### unwarp(); // shoule be unwrap() println!("{:#?}", buck_list); }

danewalters commented 1 year ago

is there an example for tencent?

by the way there is a typo in the following sample code: #[tokio::main] async fn main() { let auth = Auth::new("your aliyun oss AccessKeyId", "your aliyun oss AccessKeySecret").await; let buck_list = auth.list_bucket().await.### unwarp(); // shoule be unwrap() println!("{:#?}", buck_list); }

It will be updated and fixed later, the front-end time is rather busy. Thanks for pointing out the error, thanks!