Crates.io | mcm_api_wrapper |
lib.rs | mcm_api_wrapper |
version | 1.0.1 |
source | src |
created_at | 2022-01-06 22:06:45.726827 |
updated_at | 2022-03-10 01:35:18.480464 |
description | A wrapper for MC-Market's Ultimate REST API. |
homepage | https://github.com/Majored/rs-mcm-api-wrapper |
repository | https://github.com/Majored/rs-mcm-api-wrapper |
max_upload_size | |
id | 509176 |
size | 45,311 |
An asynchronous Rust wrapper for MC-Market's HTTP API.
[dependencies]
mcm_api_wrapper = "1.0.1"
An extensive list of examples can be found under the /examples
directory.
use mcm_rust_api_wrapper::{APIWrapper, APIToken};
...
let token = APIToken::Private(String::from("Find @ https://www.mc-market.org/account/api"));
let wrapper = APIWrapper::new(token).await.unwrap();
let member = wrapper.members().fetch(87939).await.unwrap();
assert_eq!("Harry", member.username());
Whether you're wanting to report a bug you've come across during use of this wrapper or are seeking general help/assistance, please utilise the issues tracker and tag your issue appropriately during creation.
I try to respond to issues within a reasonable timeframe.