mirror of
https://github.com/tribufu/sdk-rust
synced 2025-06-15 10:44:18 +00:00
* 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
12 lines
264 B
Rust
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),
|
|
}
|
|
}
|