feat: started api wrapper
This commit is contained in:
parent
02d5446e3e
commit
e8e73e9afe
8 changed files with 217 additions and 11 deletions
10
bot/Cargo.toml
Normal file
10
bot/Cargo.toml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[package]
|
||||
name = "bot"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
affluences-api = { path = "../affluences-api" }
|
||||
tokio = { version = "1.28.1", features = ["full"] }
|
||||
8
bot/src/main.rs
Normal file
8
bot/src/main.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use affluences_api::AffluencesClient;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let mut client = AffluencesClient::new();
|
||||
let res = client.available().await.unwrap();
|
||||
println!("{:?}", res);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue