playerdb-rs/README.md

22 lines
388 B
Markdown
Raw Normal View History

2024-04-21 15:23:17 +03:00
# playerdb-rs
[playerdb](https://playerdb.co/) client with support for async/sync.
## Examples
### Async (using Tokio)
```Rust
let api = playerdb_rs::PlayerDBApi::default();
let result = api.get_minecraft_player("notch").await;
dbg!(result);
```
### Sync
```Rust
let api = playerdb_rs::sync::PlayerDBApi::default();
let result = api.get_minecraft_player("notch");
dbg!(result);
```