2 stable releases

1.2.4 May 10, 2021
1.2.3 Mar 20, 2021
1.2.1 Mar 18, 2021
1.2.0 Mar 17, 2021
1.0.0 Mar 17, 2021

#1759 in #async

MIT license

14KB
293 lines

Okaeri SDK for Rust

License Total lines Repo size crates.io Contributors Discord

Currently supported services:

Full documentation available on wiki.okaeri.eu in:

Cargo.toml definition

okaeri-sdk = "1.*"

Example usage

OK! AI.Censor

See full docs in: Polish, English

use okaeri_sdk::aicensor::AiCensor;

#[tokio::main]
async fn main() {
    let aicensor = AiCensor::new("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")?;
    let prediction = aicensor.get_prediction("o cie k u r//w@!").await?;
    let swear = prediction.general.swear;
    println!("swear: {}", swear);
}

OK! No.Proxy

See full docs in: Polish, English

use okaeri_sdk::noproxy::NoProxy;

#[tokio::main]
async fn main() {
    let noproxy = NoProxy::new("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")?;
    let info = noproxy.get_info("1.1.1.1").await?;
    let proxy = info.risks.proxy;
    let verify = info.suggestions.verify;
    let block = info.suggestions.block;
    println!("proxy: {}, verify: {}, block: {}", proxy, verify, block);
}

Dependencies

~7–20MB
~294K SLoC