Module mojang_api

Module mojang_api 

Source
Expand description

Interface for the HTTP Mojang API.

§Examples

use minecraft_utils::mojang_api::{ Profile, get_username_uuid };

let uuid = get_username_uuid("brecert").unwrap();
let profile = Profile::fetch(&uuid).unwrap();

assert_eq!(
    profile.textures().skin.url,
    "http://textures.minecraft.net/texture/b8130282b80cc08872bfc858975350ab3f3fcd4b1d18717bfb5b7b838fce4eaa"
);

Re-exports§

pub use blocked_servers::BlockedServers;
pub use profile::get_username_history;
pub use profile::Profile;
pub use user::get_username_uuid;

Modules§

blocked_servers
Utilities for finding and checking servers blocked by Mojang.
error
Errors used throughout this library.
profile
Fetching the profile/textures, or username history of a user.
stats
Fetching statistics relating the amount of games sold by Mojang.
user
Utilities for fetching basic user data, such as resolving a username to a UUID.