Crates.io | eve_esi |
lib.rs | eve_esi |
version | 0.2.4 |
source | src |
created_at | 2024-04-01 04:44:52.180359 |
updated_at | 2024-11-08 03:13:15.628594 |
description | Rust API wrapper for interaction with with EVE Online's ESI. |
homepage | |
repository | https://github.com/autumn-order/eve_esi |
max_upload_size | |
id | 1192145 |
size | 50,921 |
Rust API wrapper for interaction with EVE Online's ESI.
let user_agent = format!("APPLICATION_NAME/1.0 (example@example.com)");
let reqwest_client: reqwest::Client = reqwest::Client::builder().user_agent("APPLICATION_NAME/1.0 (example@example.com)").build().unwrap();
let esi_client: eve_esi::EsiClient<'_> = eve_esi::EsiClient::new(&reqwest_client);
let character_id: i32 = 2114794365;
let character: eve_esi::model::Character = esi_client.get_character(character_id).await.unwrap();
println!(character);
Make certain you set the user agent as demonstrated above, ensure it includes contact email in case there are any issues with your ESI requests.
See the axum example for a more complete usage demonstration.
To test out the example:
cargo run --example axum