Skip to content

A Rust wrapper for the omg.lol API

License

Notifications You must be signed in to change notification settings

GilOliveira/omglolrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

omglol crate for Rust

An asynchronous Rust wrapper for the omg.lol API by Gil.

LICENSE: MPL 2.0 (see LICENSE)

Warning: This is a work in progress

Unstable and bug-prone. Endpoints may change. Upstream endpoints under development.

Contribute

Project homepage

Repos: sourcehut (canonical) | GitLab | GitHub | Codeberg

Caught a bug? Mail in a ticket after checking the bug tracker.

Examples

Get service status

use omglol::client::OmglolClient;

fn main() {
  let response = OmglolClient::new(None())
                  .get_service_status()
                  .await;
  println!("{:#?}", response);
}

Fetch a webpage

use omglol::client::OmglolClient;

fn main() {
  let response = OmglolClient::new(Some("YOUR_API_KEY_HERE"))
                  .get_web_page("your-address")
                  .await();
  println!("{:#?}", response);
}