mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-06-01 09:42:37 +00:00
Add oauth2 client
This commit is contained in:
parent
8312341dc3
commit
5e7ffa2b1a
7 changed files with 122 additions and 22 deletions
11
examples/client.rs
Normal file
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),
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue