Files
sdk-rust/examples/client.rs
Guilherme Werner 21daa668f8 Prototype API (#1)
* 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
2023-12-24 08:23:10 -03:00

12 lines
264 B
Rust

// 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),
}
}