Files
irssi-wire/examples/auth.rs
CramMK 49ceef2a7f Add Api-Logic
- THIS COMMIT IS ONLY FOR DATA SAFETY PURPOSES
- Missing: corrent auth token generation
- clean format/ "use"
- will fix both in an upcoming commit
2020-01-14 09:40:22 +01:00

28 lines
521 B
Rust

use std::env;
use irssi_wire::net::wire_api::{
wire_client::WireClient,
auth::Config,
conversations::Conversations,
members::Members,
self_info::SelfInfo,
};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut client = WireClient::new(
env::var("EMAIL").unwrap(),
env::var("PW").unwrap(),
Config::Default,
);
let auth_response = client
.authentification()
.await
.unwrap();
dbg!(client);
Ok(())
}