rs-pixel

A complete, rate-limiting, asynchronous Rust implementation of the Hypixel Public API with extensive SkyBlock support.
[]
= "0.1.0"
Getting started
You will need a Hypixel Api Key to access most endpoints (official documentation).
Creating an Instance
Use the default configuration
let mut api = new.await.unwrap;
Or configure the client, Minecraft username/UUID API type, and the rate limit strategy
let config = default
.client
.minecraft_api_type
.rate_limit_strategy
.into;
let mut api = from_config.await.unwrap;
Examples
Print a player's name and rank
let response = api.get_player_by_username.await.unwrap;
println!;
Print a skyblock player's statistics
let response = api.get_skyblock_profiles_by_name.await.unwrap;
let profile = response.get_last_played_profile.unwrap;
println!;
Print a skyblock player's inventory contents (NBT parsed to JSON)
let response = api.get_skyblock_profiles_by_uuid.await.unwrap;
let profile = response.get_last_played_profile.unwrap;
println!;
Get the first page and print the first auction
let response = api.get_skyblock_auctions.await.unwrap;
let auction = response.auctions.get.unwrap;
println!;
Todo
- Documentation
- More examples
License & Contributing
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.