omglol

Crates.ioomglol
lib.rsomglol
version0.0.1
sourcesrc
created_at2023-09-24 18:36:50.935523
updated_at2023-09-24 18:36:50.935523
descriptionA wraper for api.omg.lol for your Rust masterpieces.
homepage
repositoryhttps://git.sr.ht/~gpo/omglolrs
max_upload_size
id982120
size55,825
Gil Poiares-Oliveira (GilOliveira)

documentation

README

omglol crate for Rust

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

LICENSE: MPL 2.0 (see LICENSE)

Warning: Heads up! This is a public alpha for adventurous folks!

Keep in mind:

  • All basic features should be implemented and functional
  • Not all features have been throughly tested
  • Endpoints are bound to change
  • Bugs and unresolved issues are bound to come up
  • This is available as-is and with no support or warranty
  • Upstream endpoints are bound to change and will break this crate
  • This crate is just provided for fun 🌈

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()
                  .get_service_status()
                  .await;
  println!("{:#?}", response);
}

Fetch a webpage

use omglol::client::OmglolClient;

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

cargo fmt