~gpo/omglolrs

614c5b1291336e0d0de1a18ff7c9c7ad898655f7 — Gil Poiares-Oliveira 1 year, 5 months ago 5b3bead
Fix README.md examples to match new auth workflow
1 files changed, 3 insertions(+), 2 deletions(-)

M README.md
M README.md => README.md +3 -2
@@ 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);