Crate smite

Source
Expand description

§Crate for interacting with the Smite API.

For possible endpoints and details, see the official documentation

§Example

use smite::client::Client;
use smite::error::Result;

async fn example() -> Result<()> {
    let client = Client::new("your_developer_id".to_string(), "your_auth_key".to_string());
    let motds = client.get_motds().await?;
    for motd in motds {
        println!("Motd {} at {:?}", motd.title, motd.start_date_time);
    }

    Ok(())
}

Modules§

client
entities
error