2
0
mirror of https://github.com/tribufu/sdk-rust synced 2025-06-19 04:24:18 +00:00

Prototype API ()

* Add oauth2 client

* Update LICENSE.txt

* Create .env.example

* Add dotenv to example

* Add oauth2 types

* Update lib.rs

* Update Cargo.toml

* Update lib.rs

* Add games routes
This commit is contained in:
Guilherme Werner
2023-12-24 08:23:10 -03:00
committed by GitHub
parent 92d5adc03b
commit 21daa668f8
14 changed files with 472 additions and 22 deletions

11
examples/client.rs Normal file

@ -0,0 +1,11 @@
// Copyright (c) Tribufu. All Rights Reserved
use tribufu::*;
#[tokio::main]
async fn main() {
match TribufuClient::new(0, "client_secret") {
Ok(client) => println!("client_id: {}", client.id()),
Err(e) => println!("error: {:?}", e),
}
}