auto_api_client/lib.rs
1//! # auto-api-client
2//!
3//! Rust client for [auto-api.com](https://auto-api.com) — car listings API
4//! across multiple marketplaces.
5//!
6//! ## Usage
7//!
8//! ```no_run
9//! use auto_api_client::{Client, OffersParams};
10//!
11//! #[tokio::main]
12//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
13//! let client = Client::new("your-api-key");
14//!
15//! let offers = client.get_offers("encar", &OffersParams {
16//! page: 1,
17//! brand: Some("BMW".into()),
18//! ..Default::default()
19//! }).await?;
20//!
21//! println!("Got {} offers", offers.result.len());
22//! Ok(())
23//! }
24//! ```
25
26mod client;
27mod error;
28mod types;
29
30pub use client::Client;
31pub use error::Error;
32pub use types::*;