From 614c5b1291336e0d0de1a18ff7c9c7ad898655f7 Mon Sep 17 00:00:00 2001 From: Gil Poiares-Oliveira Date: Wed, 10 May 2023 13:20:21 +0100 Subject: [PATCH] Fix README.md examples to match new auth workflow --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 848462d..e5e9c01 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Caught a bug? [Mail in a ticket](mailto:~gpo/omglolrs@todo.sr.ht) after checking use omglol::client::OmglolClient; fn main() { - let response = OmglolClient::new(None()) + let response = OmglolClient::new() .get_service_status() .await; println!("{:#?}", response); @@ -39,7 +39,8 @@ fn main() { use omglol::client::OmglolClient; fn main() { - let response = OmglolClient::new(Some("YOUR_API_KEY_HERE")) + let response = OmglolClient::new() + .auth("YOUR_API_KEY_HERE") .get_web_page("your-address") .await(); println!("{:#?}", response);