Skip to content

Commit

Permalink
docs(readme): update readme to match code
Browse files Browse the repository at this point in the history
  • Loading branch information
Guusvanmeerveld committed Aug 10, 2023
1 parent 1db74bf commit 053a18e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ extern crate ms_autodiscover;
async fn main() {
let config = ms_autodiscover::from_email("[email protected]", "example_password", None::<String>).await.unwrap();

println!("{}", config.user().name())
match config {
AutodiscoverResponse::Pox(response) => {
println!("{}", response.user().display_name())
}
}

// Example output:
// "Contoso"
Expand Down

0 comments on commit 053a18e

Please sign in to comment.