rfesi 0.50.0

Rust API for EVE Online's ESI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use log::info;
use rfesi::prelude::*;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    std::env::set_var("RUST_LOG", "info");
    pretty_env_logger::init();

    let mut esi = EsiBuilder::new()
        .user_agent("github.com/celeo/rfesi :: example :: unauthorized_requests")
        .build()?;
    esi.update_spec().await?;
    let alliances = esi.group_alliance().list_ids().await?;
    info!("Found {} alliances", alliances.len());

    Ok(())
}