Skip to main content

Crate esix

Crate esix 

Source
Expand description

You are responsible for any possible form of abuse with the e621 API.

Esix is an e621 API client for Rust.

“Esix” is a mascot name of e621.

§Example

This example shows an example action of getting the post with the highest score that has the tag “tic_tac”.

use esix::{Esix, error::Error};

fn main() -> Result<(), Error> {
    let mut client = Esix::new(
            "API_KEY",
            "USERNAME",
            "project_name".to_string(),
            "project_version".to_string()
    );
     
    let posts = client.list("rating:safe", 1)?;
     
    for post in posts {
        println!("{:?}", post);
    }
     
   Ok(())
}

Modules§

error
post

Structs§

Esix
The client that will interact with the e621 API.