Crates.io | miHoYo-API |
lib.rs | miHoYo-API |
version | 0.2.18 |
source | src |
created_at | 2023-10-18 11:41:39.045607 |
updated_at | 2023-12-05 17:35:52.536299 |
description | A API-Wrapper of miHoYo games in Rust |
homepage | |
repository | https://github.com/miHoYo-API/miHoYo-API-Wrapper |
max_upload_size | |
id | 1006658 |
size | 80,903 |
And I need a huge help to improvement this, So I will appreciate you help if you text me.
Discord: ennui_lw
*TBA
Genshin | Honkai | StarRail | |
---|---|---|---|
User | |||
Characters | |||
Characters*1 | |||
Challenge*2 | |||
Notes |
*1 Game Characters on Preview
*2 Spiral Abyss / (None) / Challenge
Cargo.toml
miHoYo-API = "0.1"
tokio = { version = "1.33.0", features = ["full"] }
main.rs
#[allow(non_snake_case)]
use miHoYo_API::client::Client;
use miHoYo_API::types::Game;
#[tokio::main]
async fn main() {
let client = Client::default().set_from_env().unwrap();
let star_rail_id = client.get_game_account(Some("ja-jp"), Game::STARRAIL)
.await
.unwrap()
.get_uid();
let data = client.get_starrail_notes(Some(star_rail_id), Some("ja-jp"))
.await
.unwrap();
dbg!(data.recover_time_as_duration());
}
Genshin | Honkai | StarRail | |
---|---|---|---|
preview | ✓ | ||
Calc Relics | |||
ExpeditionUtil |
Last Edit (26/11/2023)
※Idk how to expression so I write in Japanese sometime sry
Q. Why is no there Honkai?
A. Idk How to change to public. You'll be known that meant I said.