1 2 3 4 5 6 7 8 9
use postman2::PostmanClient; use postman2::model::*; #[tokio::main] async fn main() { let client = PostmanClient::from_env(); let api_id = "your api id"; let response = client.single_api(api_id).send().await.unwrap(); println!("{:#?}", response); }