1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
//! # Steamgriddb API
//!
//! This project is a wrapper for the steamgriddb api, written in Rust.
//!
//! ## Getting started
//!
//! The easiest way to get started is using the Client.
//!
//! ```no_run
//! use steamgriddb_api::Client;
//! use steamgriddb_api::QueryType::Grid;
//! async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! let client = Client::new("my_auth_key");
//! let games = client.search("Celeste").await?;
//! let first_game = games.iter().next();
//! if let Some(first_game) = first_game {
//! assert_eq!("Celeste", first_game.name);
//! let images = client.get_images_for_id(first_game.id, &Grid(None)).await?;
//! }
//! Ok(())
//! }
//! ```
pub mod client;
pub mod games;
pub mod images;
pub mod query_parameters;
pub mod response;
pub mod search;
pub mod steam_static;
pub use client::Client;
pub use query_parameters::QueryType;