Skip to content

Commit

Permalink
Fix README.md examples to match new auth workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GilOliveira committed May 10, 2023
1 parent 5b3bead commit 614c5b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 614c5b1

Please sign in to comment.