mojos_api_madhouse

Crates.iomojos_api_madhouse
lib.rsmojos_api_madhouse
version0.1.1
sourcesrc
created_at2022-08-17 10:08:11.845421
updated_at2022-08-17 10:38:25.584841
descriptionA collaction of simple functions to easily use a large ammount of random APIs!
homepage
repositoryhttps://github.com/BuyMyMojo/mojos_api_madhouse
max_upload_size
id647346
size17,057
Owen Quinlan (BuyMyMojo)

documentation

https://docs.rs/mojos_api_madhouse/

README

Crates.io Crates.io wakatime GitHub Workflow Status (branch)

mojos_api_madhouse

This is a library I made so I can intergreate more APIs in my discord bot's easily.

it is asynchronous and powered by Reqwest.

My main goal is to make an easy to use library for many things and have features for each type of api so you can have faster compile times/less dead code then what is necessary.

Examples

use mojos_api_madhouse::structs::{AnimechanRout, AnimechanResponse};
use mojos_api_madhouse::anime::animechan;

let output = animechan(AnimechanRout::Random, None, None).await?;

let quote: AnimechanResponse = output.except("No response from AnimeChan API").first().expect("There should always be an output!").to_owned();

println!("Your random quote: {}", quote.quote.unwrap_or(error.error.unwrap()));

Commit count: 25

cargo fmt