Crates.io | awscurl |
lib.rs | awscurl |
version | 0.1.0 |
source | src |
created_at | 2023-04-14 23:33:24.963014 |
updated_at | 2023-04-14 23:33:24.963014 |
description | https/mqtt API for AWS |
homepage | |
repository | https://github.com/nalchevanidze/awscurl |
max_upload_size | |
id | 839578 |
size | 40,509 |
Provides an https/mqtt API for AWS. is inspired by awscurl, but does not provide a CLI, only an API for similar functions.
use awscurl::{AWSCurl, AWSProfile, Method};
fn main() {
let profile = AWSProfile::from_env().expect("can't read aws credentials");
let awscurl = AWSCurl::new(&profile);
awscurl.http_request(&Method::GET, "https://blog.com/users")
.expect("can't fetch users");
}