đšī¸ mojang
Rust Interface to the Mojang API!
đ Install
Just add the following to your Cargo.toml
:
[]
= "0.1.0"
đ Info
Unofficial Rust Crate that interfaces with the Mojang HTTP API. Mojang API docs here
For more information on this lib check the docs here
đĨ Examples
đĻĻ Players
Get UUID from name / Name from UUID
// Import lib
use Player;
// Make a new Player
// This can be with player name or UUID
let p1 = new.unwrap;
let p2 = new.unwrap;
assert_eq!;
assert_eq!;
Get Player Name Change History
// Import lib
use Player;
// Make a new Player
// Then fetch and add Name History Data
let p = new.unwrap.add_name_change.unwrap;;
// Get name at timestamp (ms)
// Due to API limitations any timestamp before the first name change will count as the accounts original name
assert_eq!;
Get Player Skin URL
// Import lib
use Player;
// Make a new Player
// Then fetch and add skin data to it
let p = new.unwrap.add_skin.unwrap;
assert_eq!;
đŽ Mojang Stats
Get Minecraft Sales Data
// Import Lib
use Stats;
// Get Stats for Default Metrics
let s = new.unwrap;
println!;
println!;
println!;
Get all Mojang Game Sales
// Import Lib
use Stats;
use MetricKeys;
let s = new_metrics
.unwrap;
println!;
println!;
println!;
đ Other
Check if server is blocked by Mojang
// Import Lib
use BlockedServers;
// Get Blocked Servers (Hashes only)
let blocked = new.unwrap;
// Check if server is blocked
assert!;