mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-06 06:47:28 +00:00
Create initial api wrapper (#2)
* Api v0.1? * Split crates * Update api
This commit is contained in:
parent
21daa668f8
commit
f63f64103c
18 changed files with 607 additions and 237 deletions
10
examples/api.rs
Normal file
10
examples/api.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved
|
||||
|
||||
use tribufu::*;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let api = TribufuApi::default();
|
||||
let games = api.get_games(Some(1)).await.unwrap();
|
||||
println!("{:?}", games);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue