Postman client, generated from the OpenAPI spec.
```rust use postmanapi::PostmanClient; use postmanapi::model::*;
async fn main() { let client = PostmanClient::fromenv(); let response = client .getallapis() .workspace("your workspace") .since("your since") .until("your until") .createdby("your created by") .updatedby("your updated by") .ispublic(true) .name("your name") .summary("your summary") .description("your description") .sort("your sort") .direction("your direction") .send() .await .unwrap(); println!("{:#?}", response); }
```
This example loads configuration from environment variables, specifically:
POSTMAN_BASE_URL
POSTMAN_POSTMAN_API_KEY
Add this to your Cargo.toml:
toml
[dependencies]
postman-api = "0.1.0"
You can see working examples of every API call in the examples/
directory.
Contributions are welcome!
Library created with Libninja.