feat: started api wrapper

This commit is contained in:
Jef Roosens 2023-05-11 09:30:25 +02:00
parent 02d5446e3e
commit e8e73e9afe
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
8 changed files with 217 additions and 11 deletions

10
bot/Cargo.toml Normal file
View 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
View 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);
}