microsoft_mail 0.1.0

Microsoft Mail api
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::env::var;

use microsoft::MicrosoftAuth;

#[tokio::main]
async fn main() {
    let auth = MicrosoftAuth::oauth2(var("BEARER").unwrap(), "".to_string(), None);
    let client = microsoft::MicrosoftClient::with_auth(auth);
    let me = client.me().await.unwrap();
    dbg!(me);
}