use apollo_client::open::{requests::OpenAppRequest, OpenApiClientBuilder}; use std::error::Error; #[tokio::main] async fn main() -> Result<(), Box> { env_logger::init(); // Create open platform api client. let client = OpenApiClientBuilder::new( "http://127.0.0.1:8070/".parse()?, "391cc4053f8cce2e452a0e6db8925bbba503f434", )? .build()?; // Execute app fetching request. let responses = client .app(OpenAppRequest { app_ids: Some(vec!["SampleApp".to_string()]), }) .await?; dbg!(responses); Ok(()) }